LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Refresh VBA

I have a workbook with a macro below. Within a worksheet I have a number of
tables linked to an access query and would like a macro to refresh all of
these tables at once to pull the new data into my 'master' worksheet. Each
week however this worksheet is copied and renamed for audit purposes. However
when I run the macro below it updates the data in all of these archived
sheets as well.

So in my macro I either want to tell it to refresh the data in just the
'master' worksheet, or prevent it from updating data in the archived
worksheets.

Thanks


Sub Refresh_all_queries()
'
' Refresh_all_queries Macro
'

'
ActiveWorkbook.RefreshAll
Range("F27").Select
MsgBox "All data should have now been refreshed, please ensure that the
month to date figures are also completed.", vbInformation

End Sub
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to Refresh inbound data sheets, then Refresh Pivot Tables AFSSkier Excel Programming 3 September 4th 09 07:59 PM
Refresh Query Table causing debug error with Background Refresh pr Gum Excel Programming 2 March 12th 09 10:08 PM
Create refresh button in worksheet to refresh Pivot Table Data Ron Excel Worksheet Functions 1 October 13th 07 01:20 AM
Timing of automatic query refresh and macro pivot table refresh dutty Excel Programming 2 December 1st 04 07:19 PM
Pivot Table REFRESH Flaw -- Saves Old Data in Selection Area AFTER REFRESH Ken Roberts Excel Programming 3 September 11th 03 06:02 AM


All times are GMT +1. The time now is 10:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"