Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I have written a macro -- let's call it web_macro -- to import some web pages into Excel. The macro then reformats the pages. It's all done automatically. I then share the resulting file -- let's call it "new_file" -- with my friends. The web_macro is in my personal.xls file. What I want is that whenever my friends close the new_file, a message will be displayed. I know I can do it by adding a workbook_beforeclose event to ThisWorkbook in the new_file. However, I don't want to do it every time a new_file is generated. How can I code it in my original web_macro so that a Workbook_BeforeClose event will be inserted to the new_file automatically? Your help will be much appreciated! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Workbook_BeforeClose | Excel Discussion (Misc queries) | |||
Workbook_BeforeClose(Cancel As Boolean) - Cancel won't work | Setting up and Configuration of Excel | |||
Workbook_BeforeClose Question | Excel Worksheet Functions | |||
change event/after update event?? | Excel Programming | |||
OnTime event not firing in Workbook_Open event procedure | Excel Programming |