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: 1
Default Excel-Macro running through SQL update.

Im trying to include an SQL update in my Excel workbook.

To update the database valuse Im using :

ActiveWorkbook.RefreshAll
...

Followed by a recalculation of the workbook:

Calculate
...

And finally i save the file as an .HTM using the current date:

With ActiveWorkbook.PublishObjects("MYworkbook")
.HtmlType = xlHtmlStatic
.Filename = "Path" & DateVariable & ".htm"
.Publish (False)
End With


After all this the data has not been updated.
Is there a way of suspending the macro once it calls the SQ
recalculation (even if it is a set time, say 10 seconds).
Im not an expert in VB so a simple solution would help tones!

Thank

--
Message posted from http://www.ExcelForum.com

 
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
HOW CAN I UPDATE DATA FROM INTERNET WITHOUT RUNNING MACRO lookup Excel Discussion (Misc queries) 2 April 23rd 08 10:15 PM
Can't update the data from internet while running macro wilson Excel Programming 3 November 10th 03 07:23 PM
Launch Macro in Access via Macro running in Excel??? dgrant Excel Programming 1 September 24th 03 01:38 PM
Running Excel Macro from VB6 Rick Griffith Excel Programming 2 August 13th 03 07:05 PM
More UDF problems; some won't update, some won't stop running! Keith R[_3_] Excel Programming 0 August 1st 03 02:01 PM


All times are GMT +1. The time now is 09:11 AM.

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"