Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Can I run a macro/program when Excel saves worksheet?

I'm desperate to find out how I can run a macro or vba program when the file
is saved (or even when Excel quits). I've read that I can run a macro for
example when Excel starts using Auto_Start but I don't know of any other
prenamed macros that I can use.

My overall aim is to save the file in two formats (one Excel and the other
HTM for the Intranet site) but I want this to be invisible to all users of
the spreadsheet.

Thanks in eager anticipation,

Terry
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Can I run a macro/program when Excel saves worksheet?

Hi
you could use the workbook_beforesave event. See:
http://www.cpearson.com/excel/events.htm

--
Regards
Frank Kabel
Frankfurt, Germany


TerryM wrote:
I'm desperate to find out how I can run a macro or vba program when
the file is saved (or even when Excel quits). I've read that I can
run a macro for example when Excel starts using Auto_Start but I
don't know of any other prenamed macros that I can use.

My overall aim is to save the file in two formats (one Excel and the
other HTM for the Intranet site) but I want this to be invisible to
all users of the spreadsheet.

Thanks in eager anticipation,

Terry

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
Shared worksheet saves blank files Lindaloutx Excel Discussion (Misc queries) 0 November 3rd 09 06:10 PM
Macro orVB Program to email a worksheet Dave R Excel Discussion (Misc queries) 2 December 10th 08 07:53 PM
Saves worksheet as copy Bead Excel Discussion (Misc queries) 1 November 19th 08 04:00 PM
macro wich saves files orquidea Excel Discussion (Misc queries) 5 August 24th 08 01:02 AM
Macro that saves excel workbook as PDF?? mydogpeanut Excel Discussion (Misc queries) 1 May 25th 06 08:56 PM


All times are GMT +1. The time now is 09:26 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"