Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Refresh background query in Excel 2007

Hello

I have a macro which refreshes an OLAP cube. I want a message to pop up
afterwards to say data has refreshed but it pops up too early and the data is
still refreshing in the background. I think i need to turn off Refresh
background query in the Data connections properties but it is greyed out and
I can't change it. I am using Excel 2007.

I've tried a Do events switch on and off but that didn't help. And i tried
this bit of code but still have same problem.

Sub Refresh_all_Button_Click()
application.enableevents=false
ActiveWorkbook.RefreshAll
application.enableevents=true

Range("k2")=date
MsgBox "Refresh is complete"
End Sub


Any other suggestions very welcome - Thanks
--
F Jones

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
Excel 2007 vba - Refresh after web query? Rui Brito Excel Programming 1 February 27th 08 03:35 AM
File Properties Location retrieve to refresh background query? lireland Excel Programming 1 November 16th 07 02:43 AM
How can I 'Enable Automatic Refresh' for Query Refresh by default Anand Deshpande Setting up and Configuration of Excel 0 December 10th 06 04:47 AM
Timing of automatic query refresh and macro pivot table refresh dutty Excel Programming 2 December 1st 04 07:19 PM
Excel does not close from VB!! (when i refresh Refresh query with BackgroundQuery:=False) Anant[_2_] Excel Programming 1 August 6th 03 04:22 AM


All times are GMT +1. The time now is 01:49 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"