Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a "template" workbook in which a user enters a Sales Order Number and
an SQL is executed to pull relevant data from our datawarehouse into three worksheets in the workbook. If the user decides to save the file under a different name, I would like to remove some code and one of the worksheets. I know I can use the Workbook_BeforeSave event to execute this code, but I only want it to run it if the user saves the workbook under a different name. How can I trap the name the file will be saved to so I can compare that to the file's current name to determine whether or not to run the desired BeforeSave code? TIA BAC |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Saving Excel 2007 file in 2003 creates very large file | Excel Discussion (Misc queries) | |||
How do I stop Excel 2000 from saving file history from file that . | Excel Discussion (Misc queries) | |||
How to trap automatic link prompt when an excel file is being open | Excel Programming | |||
saving an excel file as an ASCII text file without delimiters | Excel Programming | |||
File Name Exists Error Trap | Excel Programming |