Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Initiate Macro On Save


I need to initiate a macro when someone tries to "save" or "save as...
a file. Is that possible

--
JTWoo
-----------------------------------------------------------------------
JTWood's Profile: http://www.excelforum.com/member.php...fo&userid=3419
View this thread: http://www.excelforum.com/showthread.php?threadid=55161

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Initiate Macro On Save

There is a Before Save Event associted with ThisWorkbook. Right Click the
Excel Icon next to File on the menu bar and select View Code. Then paste the
following...

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
msgbox "you are saving..."
End Sub
--
HTH...

Jim Thomlinson


"JTWood" wrote:


I need to initiate a macro when someone tries to "save" or "save as..."
a file. Is that possible?


--
JTWood
------------------------------------------------------------------------
JTWood's Profile: http://www.excelforum.com/member.php...o&userid=34192
View this thread: http://www.excelforum.com/showthread...hreadid=551610


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Initiate Macro On Save


Jim Thomlinson Wrote:
There is a Before Save Event associted with ThisWorkbook. Right Clic
the
Excel Icon next to File on the menu bar and select View Code. The
paste the
following...

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel A
Boolean)
msgbox "you are saving..."
End Sub
--
HTH...

Jim Thomlinson


"JTWood" wrote:


I need to initiate a macro when someone tries to "save" or "sav

as..."
a file. Is that possible?


--
JTWood


------------------------------------------------------------------------
JTWood's Profile

http://www.excelforum.com/member.php...o&userid=34192
View this thread

http://www.excelforum.com/showthread...hreadid=551610


Excellent. I will try this out today.

Thanks

--
JTWoo
-----------------------------------------------------------------------
JTWood's Profile: http://www.excelforum.com/member.php...fo&userid=3419
View this thread: http://www.excelforum.com/showthread.php?threadid=55161

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
How can a macro automatically initiate uponing a file? kanye Excel Discussion (Misc queries) 5 April 27th 05 11:45 PM
How do I initiate the windows printer select object in Excel macro Mick B[_2_] Excel Programming 1 January 13th 05 09:46 PM
Macro to initiate a spreadsheet to email Rich F[_2_] Excel Programming 2 November 12th 04 07:00 PM
DDE Initiate does not work Ferenc Nagy Excel Programming 0 October 11th 04 09:13 AM
Initiate Macro Formula :: Combo Boxes lykwid Excel Programming 1 January 23rd 04 05:31 PM


All times are GMT +1. The time now is 12:13 AM.

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

About Us

"It's about Microsoft Excel"