Hi Subodh
Adding up to the experts:
Query:You can get the list of workbooks for the query from the Where used list in Query Designer.
Workbook:You can re-attach the query in Workbook settings -> Data Providers and then save the workbook after providing variable screen input
Regards
Anoop