Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i have 3 modules. module1 opens a application file, module2 saves the
file using (Ctrl+Shift+R), and module3 closes the opened application. what i am tring to do is remove the macros from the document when i save it? where do i put the macro that deletes the macros and what dose the macro look like?? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You should find some information on this at Chip Pearson's site
http://www.cpearson.com/excel/vbe.htm Changes made in a workbook by a macro, such as deleting code, do not take effect until the macro ends. So You might have to use a second, possibly a temporary workbook (create it, put a macro in it, then use Ontime to call that macro) to delete the macros and then save the original workbook. http://www.cpearson.com/excel/ontime.htm another approach might just be to copy information to a new workbook and not copy macros. A lot depends exactly what you are doing. -- Regards, Tom Ogilvy "toolroomman" wrote in message oups.com... i have 3 modules. module1 opens a application file, module2 saves the file using (Ctrl+Shift+R), and module3 closes the opened application. what i am tring to do is remove the macros from the document when i save it? where do i put the macro that deletes the macros and what dose the macro look like?? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi,
see this site http://www.cpearson.com/excel/vbe.htm Regards FSt1 "toolroomman" wrote: i have 3 modules. module1 opens a application file, module2 saves the file using (Ctrl+Shift+R), and module3 closes the opened application. what i am tring to do is remove the macros from the document when i save it? where do i put the macro that deletes the macros and what dose the macro look like?? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macrs with Validation Rules | Excel Worksheet Functions | |||
MACRS depreciation formula | Excel Worksheet Functions | |||
'document not saved' for 'save' or 'save as' an EXCEL file | Excel Discussion (Misc queries) | |||
Save Excel file - prompts to save - no Volitile functions used | Excel Worksheet Functions | |||
Excel marcos firing on file save as but not file save | Excel Programming |