Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Query Refresh
I currently have a workbook that has several Query Tables in it. I currently
have a macro to "refreshall" but my problem is that occasionally the file name may change causing an error in the refresh process. Is there a way to include a procedure in code that if the filename in the query no longer exist, it could prompt for the correct filename? In my existing macro I have a section for inserting new queries & it prompts for the filename but I'm not sure how to code on a refresh error to prompt for a filename. Any help would be greatly appreciated. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Query Refresh
Maybe instead of refresh all refresh each in turn with an on error goto
-- Don Guillett Microsoft MVP Excel SalesAid Software "Chas" wrote in message ... I currently have a workbook that has several Query Tables in it. I currently have a macro to "refreshall" but my problem is that occasionally the file name may change causing an error in the refresh process. Is there a way to include a procedure in code that if the filename in the query no longer exist, it could prompt for the correct filename? In my existing macro I have a section for inserting new queries & it prompts for the filename but I'm not sure how to code on a refresh error to prompt for a filename. Any help would be greatly appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Query refresh | Excel Discussion (Misc queries) | |||
How can I 'Enable Automatic Refresh' for Query Refresh by default | Setting up and Configuration of Excel | |||
Losing query after refresh | Excel Discussion (Misc queries) | |||
Query parameter "refresh when value changes" doesn't refresh - why | Excel Discussion (Misc queries) | |||
Query Refresh-Enable Automatic Refresh Dialogue Box | Excel Discussion (Misc queries) |