Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default waiting for data refresh before continuing VBA sub

I want to open a workbook, update the data from Access
using MS Query, then saveas the workbook with a new name.
Excel wants to run the sub without waiting for the
refreshed data.

Is there any way to get the VBA to recognise that the
refresh has finished and then continue with sub?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default waiting for data refresh before continuing VBA sub

Set the backgroundQuery property to false

This should make your macro wait.

--
Regards,
Tom Ogilvy



David Macqueen wrote in message
...
I want to open a workbook, update the data from Access
using MS Query, then saveas the workbook with a new name.
Excel wants to run the sub without waiting for the
refreshed data.

Is there any way to get the VBA to recognise that the
refresh has finished and then continue with sub?



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
Calculating waiting times Garry Excel Worksheet Functions 5 May 28th 08 01:37 PM
Create refresh button in worksheet to refresh Pivot Table Data Ron Excel Worksheet Functions 1 October 13th 07 01:20 AM
Waiting for data to be returned from Microsoft Query bclakey Excel Discussion (Misc queries) 0 July 1st 05 12:36 AM
Pivot Table REFRESH Flaw -- Saves Old Data in Selection Area AFTER REFRESH Ken Roberts Excel Programming 3 September 11th 03 06:02 AM
waiting Mark Kubicki Excel Programming 2 August 7th 03 09:08 PM


All times are GMT +1. The time now is 01:38 PM.

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"