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: 33
Default How to launch Macro/Code form command line

I have used a message box in the auto open macro that prompts to
update tthe data or not.
It ahould be placed at the beginning of your auto open macro

'message box to update or not
Dim Msg, Title, Response As String
Msg = "Do you want to update the data?"
Title = "Update new data"
Response = MsgBox(Msg, vbYesNo + vbQuestion, Title)
If Response = vbNo Then
Exit Sub ' Quit the macro
End If


On Apr 3, 5:22*pm, Phil Smith wrote:
I want a Macro to run when a spreadsheet is opened SOME OF THE TIME. *I
know about Auto_Open but it runs everytime you open the spreadsheet. *I
do not want this. *I want to be able to decide, based on a command line
call, whether or not to run the macro in question.

Excel 2003.

Ideas?


 
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
Macro code to put series name next to individual line in line grap Otani Charts and Charting in Excel 3 February 23rd 10 07:24 PM
Run Macro from Command line Phil Smith Excel Discussion (Misc queries) 1 July 21st 07 06:35 PM
Run macro from command line Alan Wilson Excel Programming 5 August 22nd 06 03:30 PM
Form not unloading before next code line Michael Beckinsale Excel Programming 4 January 11th 06 01:26 PM
Macro launch - Button vs Manual launch , has different results. Wayne Excel Programming 4 February 23rd 05 11:33 AM


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