PC Review


Reply
Thread Tools Rate Thread

Action after save

 
 
PhilosophersSage
Guest
Posts: n/a
 
      19th Nov 2009
Is it possible to create an event after a save? I have a macro that runs
before a save to hide specific sheets and would like those sheets available
after the save just as before. The reason I have this is a macro runs at open
and user enters a password into user box, and depending on password it
unhides specific sheets. I have tried

Private Sub Workbook_AfterSave(Cancel As Boolean)

Code

End Sub

But it does not work, any ideas are appreciated. Thank you!

 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      19th Nov 2009
An interesting question. One option is to have the BeforeSave routine
schedule an clean-up macro (using OnTime). The clean-up macro would do the
post-save actions.
--
Gary''s Student - gsnu200908


"PhilosophersSage" wrote:

> Is it possible to create an event after a save? I have a macro that runs
> before a save to hide specific sheets and would like those sheets available
> after the save just as before. The reason I have this is a macro runs at open
> and user enters a password into user box, and depending on password it
> unhides specific sheets. I have tried
>
> Private Sub Workbook_AfterSave(Cancel As Boolean)
>
> Code
>
> End Sub
>
> But it does not work, any ideas are appreciated. Thank you!
>

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      19th Nov 2009
--Why dont you hide all sheets at Workbook open before prompting password and
based on password unhide the specific sheets

--"and depending on password it unhides specific sheets." . To unhide these
sheets at open the sheets should be hidden right??...but here you are asking
to unhide

--There is no event called AfterSave

If this post helps click Yes
---------------
Jacob Skaria


"PhilosophersSage" wrote:

> Is it possible to create an event after a save? I have a macro that runs
> before a save to hide specific sheets and would like those sheets available
> after the save just as before. The reason I have this is a macro runs at open
> and user enters a password into user box, and depending on password it
> unhides specific sheets. I have tried
>
> Private Sub Workbook_AfterSave(Cancel As Boolean)
>
> Code
>
> End Sub
>
> But it does not work, any ideas are appreciated. Thank you!
>

 
Reply With Quote
 
PhilosophersSage
Guest
Posts: n/a
 
      19th Nov 2009
Thanks for the pointer, that is what I needed. I tried a call before but it
only prolong the save rather then running after save.

"Gary''s Student" wrote:

> An interesting question. One option is to have the BeforeSave routine
> schedule an clean-up macro (using OnTime). The clean-up macro would do the
> post-save actions.
> --
> Gary''s Student - gsnu200908
>
>
> "PhilosophersSage" wrote:
>
> > Is it possible to create an event after a save? I have a macro that runs
> > before a save to hide specific sheets and would like those sheets available
> > after the save just as before. The reason I have this is a macro runs at open
> > and user enters a password into user box, and depending on password it
> > unhides specific sheets. I have tried
> >
> > Private Sub Workbook_AfterSave(Cancel As Boolean)
> >
> > Code
> >
> > End Sub
> >
> > But it does not work, any ideas are appreciated. Thank you!
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Save action dimpie Microsoft Access VBA Modules 2 6th Dec 2007 09:07 PM
save action was cancelled! =?Utf-8?B?RG93bmluZ0RldmVsb3BtZW50cw==?= Microsoft Access Forms 3 3rd Feb 2006 11:26 AM
HELP! - FP won't save pictures, can't change folder/action of save =?Utf-8?B?TmF0ZSBL?= Microsoft Frontpage 4 29th Jan 2006 11:40 PM
Undo a save action =?Utf-8?B?Sm9obg==?= Microsoft Excel Misc 1 26th Jan 2006 06:26 PM
Re: Action Save cancelled Allen Browne Microsoft Access 0 28th Aug 2003 06:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:58 PM.