Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In Word VBA, I can write a
sub FileSave() or sub FileSaveAs() to intercept the file menu "Save" and "Save As..." items and do some processing prior to the save. What is the analogous method in Excel VBA? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There isn't one. You can remove the menu item and replace it with your own,
us onkeys to remap and shortcut keys and so forth. -- Regards, Tom Ogilvy "Sonny Maou" wrote in message ... In Word VBA, I can write a sub FileSave() or sub FileSaveAs() to intercept the file menu "Save" and "Save As..." items and do some processing prior to the save. What is the analogous method in Excel VBA? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tom Ogilvy wrote:
There isn't one. You can remove the menu item and replace it with your own, us onkeys to remap and shortcut keys and so forth. Why? Why? Why?!?! Does the left hand not know what the right hand is doing at Mickeysoft?!?! Okay, so Microslop said "Why make it easy?" All right... let's deal with it. Is there a library out there already done? I would hate to have to reinvent the wheel. :) If not, is it possible to make a customMenu class and then do something like this: customMenu.Replace cMWhat:="FileNew", cMWith:="FileNew", cMCode="myFileNewSub" Then I'd have to reprogram the keystrokes, right? <pulling hair out |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There is a beforesave event
http://www.cpearson.com/excel/events.htm Chip Pearson's page on events. -- Regards, Tom Ogilvy "Sonny Maou" wrote in message ... In Word VBA, I can write a sub FileSave() or sub FileSaveAs() to intercept the file menu "Save" and "Save As..." items and do some processing prior to the save. What is the analogous method in Excel VBA? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tom Ogilvy wrote:
There is a beforesave event http://www.cpearson.com/excel/events.htm Chip Pearson's page on events. That was very helpful. Thanks, Tom! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SAVE and SAVE AS options disappeared from the drop down FILE menu | Excel Discussion (Misc queries) | |||
when i save xls file, debug script is running and canno't save fil | Excel Discussion (Misc queries) | |||
Save & Save As features in file menu of Excel | Excel Discussion (Misc queries) | |||
Save Excel file - prompts to save - no Volitile functions used | Excel Worksheet Functions | |||
Save As - Multiple Sheets fails to save as text file | Excel Programming |