Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Macro to Refresh from Access

I have an excel spreadsheet (called "2009info") that is linked to an Access
database and I'm opening this spreadsheet with a macro (this macro is pulling
data from various spreadsheets and this is only one of them).

Even though the spreadsheet "2009info" is set up to refresh upon opening, it
does not refresh unless I manually select the refresh button. So I thought
I'd use the following command in my macro to do the refresh:

ActiveWorkbook.RefreshAll

This command works when I step through the macro but does not work when I
simply generate the entire macro. Does anyone know why this would be
happening and what can I do to get around this?
Reply
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
refresh data from MS Access DB not picking up changes to criteria Ptero Excel Programming 2 July 14th 08 12:26 AM
Error on Refresh Data Import from Access 2+2=5? Excel Discussion (Misc queries) 0 February 4th 08 04:53 PM
Refresh MSQuery w/ Access datasource issue Chris B Excel Discussion (Misc queries) 1 June 29th 06 08:46 PM
Timing of automatic query refresh and macro pivot table refresh dutty Excel Programming 2 December 1st 04 07:19 PM
Web Query Logins and Access Refresh [email protected] Excel Programming 3 April 12th 04 10:46 PM


All times are GMT +1. The time now is 12:27 AM.

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

About Us

"It's about Microsoft Excel"