Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Disable Macro
I have a macro that prompts the user to make a new workbook on startup,
would it be possible to stop the macro using an if statement that says if this book has any other filename other than the origanl =vbno ? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Disable Macro
I think what you want is quite straight-forward. In your existing macro you
need to add something like the following before it gets down to business... if not activeworkbook.name = "blahblahblah.xls" then exit sub end if where blahblahblah.xls is the only workbook where the macro isn't stopped. "phuser" wrote: I have a macro that prompts the user to make a new workbook on startup, would it be possible to stop the macro using an if statement that says if this book has any other filename other than the origanl =vbno ? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Disable Macro
Sweet!! Thanks so much
"Sam Wilson" wrote in message ... I think what you want is quite straight-forward. In your existing macro you need to add something like the following before it gets down to business... if not activeworkbook.name = "blahblahblah.xls" then exit sub end if where blahblahblah.xls is the only workbook where the macro isn't stopped. "phuser" wrote: I have a macro that prompts the user to make a new workbook on startup, would it be possible to stop the macro using an if statement that says if this book has any other filename other than the origanl =vbno ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Disable running of SelectionChange macro when in another macro? | Excel Discussion (Misc queries) | |||
disable a macro | Excel Programming | |||
disable user running macro from Tools Macro | Excel Discussion (Misc queries) | |||
Disable a Macro | Excel Programming | |||
Disable Macro at open by an external macro | Excel Programming |