Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA - AfterSave event

Is there an AfterSave event? I want to include a set of VBA code to be
executed automatically every time after the workbook is saved. I have some
experience programming in VBA for Excel, I found a BeforeSave event, but not
an AfterSave, how could I create it? Thanks, Alfredo


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default VBA - AfterSave event

Hi David
there's no AfterSave event but you could use the Before_Save event. Try
for example:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
application.enableevents=false
me.save
application.enableevents=True
'now your code for the after save part

Cancel=True
End Sub

--
Regards
Frank Kabel
Frankfurt, Germany


David Canal wrote:
Is there an AfterSave event? I want to include a set of VBA code to
be executed automatically every time after the workbook is saved. I
have some experience programming in VBA for Excel, I found a
BeforeSave event, but not an AfterSave, how could I create it?
Thanks, Alfredo


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default VBA - AfterSave event

I have an AfterSave example on my website. It can handle Save As...
It's in the section: Save Changes?


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"David Canal" wrote in message
nk.net...
Is there an AfterSave event? I want to include a set of VBA code to be
executed automatically every time after the workbook is saved. I have some
experience programming in VBA for Excel, I found a BeforeSave event, but

not
an AfterSave, how could I create it? Thanks, Alfredo




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
event vba irosh Excel Worksheet Functions 4 November 11th 08 09:25 AM
Event Procedures: Event on Worksheet to fire Event on another Worksheet Kathryn Excel Programming 2 April 7th 04 07:35 PM
vba event Daniel P Excel Programming 4 February 20th 04 03:29 PM
change event/after update event?? scrabtree23[_2_] Excel Programming 1 October 20th 03 07:09 PM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM


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

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"