Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default Force save with timestamp

I need a way to force excel to save the workbook after the user closes the
workbook. When it saves, I need it to save a timestamp to the original file
name.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Force save with timestamp

Use the beforeclose event.

http://www.cpearson.com/excel/events.htm



--
Regards,
Tom Ogilvy


"Ryan" wrote:

I need a way to force excel to save the workbook after the user closes the
workbook. When it saves, I need it to save a timestamp to the original file
name.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Force save with timestamp

In the ThisWorkbook module:

Private Sub Workbook_BeforeClose()
Me.Save
End Sub

The file will bear the new timestamp.
__________________________________________________ __________________________

"Ryan" wrote in message
...
I need a way to force excel to save the workbook after the user closes the
workbook. When it saves, I need it to save a timestamp to the original
file
name.



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
Force macro on save Meltad Excel Programming 2 June 16th 06 12:44 PM
Force worksheet to NOT save R A Excel Programming 3 December 18th 04 02:02 AM
Force save as Excel Discussion (Misc queries) 3 December 7th 04 04:18 PM
force upate to datbase using save as jason Excel Programming 8 August 19th 03 10:56 PM


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