Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA - msgbox of excel regarding Update

Hello All,

i wrote a macro that opens an excel file and does

ActiveWorkbook.RefreshAll

the file has a queries link directly to an sql data base via ODBC
and others that are pivot link to the server DB .

when i run the code i get the following msgbox from Excel.

THis action will cancel a pending refresh data command continue?

what should i do to to continue update the file ???.


attached please find the print screen of excel

here is the code i wrote :

sub macro1

ChDir "C:\Documents and Settings\amid\Desktop\Copy o
Reporting\Other\SalesInfo"
Workbooks.Open Filename:= _
"C:\Documents and Settings\amid\Desktop\Copy o
Reporting\Other\SalesInfo\Results_other.xls"
Call Refreshing
Range("j22").Value = "other " & " Updated"
End Sub

Sub Refreshing()


ActiveWorkbook.RefreshAll
ActiveWorkbook.Save
ActiveWorkbook.Close

End Su

Attachment filename: updatemsg.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=49766
--
Message posted from http://www.ExcelForum.com

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
msgBox after update a cell Claudio Silva Excel Discussion (Misc queries) 10 January 19th 07 10:22 AM
Pop up MsgBox upon opening Excel File certain_death Excel Discussion (Misc queries) 5 June 2nd 06 12:38 PM
MsgBox Popup in Excel Danny Legault Excel Programming 1 November 6th 03 02:13 PM
MsgBox saying Excel is calculating Pedo00ab Excel Programming 5 September 11th 03 12:06 PM
how msgbox from Word when ran from Excel? Dave Peterson[_3_] Excel Programming 0 September 6th 03 12:11 AM


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