Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Trap Save / Save As for all Excel workbooks

I'm trying to accomplish the following in Excel 2003: Intercept the
Save / Save As command and prompt user to enter a string that will be
used to populate one of the document properties. This was easy
enough for any new documents (via Workbook_BeforeSave placed in BOOK.
XLT). However, how can I achieve this for files the user, say,
receives via email from someone else? I came across a post suggesting
Win32 API for a similar task.. Any ideas would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 434
Default Trap Save / Save As for all Excel workbooks

hi, Aurora !

instead of using code within your template ("book.xlt") give a try to application level events
- http://www.cpearson.com/Excel/AppEvent.aspx
- http://www.cpearson.com/Excel/Events.aspx
- http://www.cpearson.com/Excel/Classes.aspx
- http://www.cpearson.com/Excel/DefaultMember.aspx

hth,
hector.

__ OP __
I'm trying to accomplish the following in Excel 2003: Intercept theSave / Save As command
and prompt user to enter a string that will be used to populate one of the document properties.
This was easy enough for any new documents (via Workbook_BeforeSave placed in BOOK.XLT).
However, how can I achieve this for files the user, say, receives via email from someone else?
I came across a post suggesting Win32 API for a similar task. Any ideas would be greatly appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Trap Save / Save As for all Excel workbooks

thanks for your suggestion. I tried it but am not getting the desired
result. In which project should the class module be stored? I want
to trap events regardless of which file the user opens in Excel, and
don't want to install add-ins. Thanks


On Mar 23, 2:28*am, "Héctor Miguel"
wrote:
hi, Aurora !

instead of using code within your template ("book.xlt") give a try to application level events
-http://www.cpearson.com/Excel/AppEvent.aspx
-http://www.cpearson.com/Excel/Events.aspx
-http://www.cpearson.com/Excel/Classes.aspx
-http://www.cpearson.com/Excel/DefaultMember.aspx

hth,
hector.

__ OP __

I'm trying to accomplish the following in Excel 2003: Intercept theSave / Save As command
and prompt user to enter a string that will be used to populate one of the document properties.
This was easy enough for any new documents (via Workbook_BeforeSave placed in BOOK.XLT).
However, how can I achieve this for files the user, say, receives via email from someone else?
I came across a post suggesting Win32 API for *a similar task. Any ideas would be greatly appreciated.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trap on close event and control save XP Excel Programming 3 October 9th 07 06:59 PM
Totally Disabling (^ save ) (Save as) and Save Icon – Which code do I use: harpscardiff[_10_] Excel Programming 8 November 10th 05 12:24 PM
I need an excel plug in to save workbooks in adobe acrobat format chris brown Excel Discussion (Misc queries) 1 June 23rd 05 12:12 AM
Excel VBA-How to save sheet w/in all workbooks as sheet1? waveracerr[_11_] Excel Programming 0 February 12th 04 05:40 PM
Using VBA in Excel to Make a Folder to Save Workbooks in Jeff Marshall[_2_] Excel Programming 2 September 22nd 03 08:36 PM


All times are GMT +1. The time now is 01:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"