Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Macro to Prompt User to Close After Saving

Hello All,

I have Office 2003.

I would like to prompt users of a public Excel file to close the file (or
application) after they save it so that when they hit Save, a message box
prompts them to that effect.

Thanks in Advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Macro to Prompt User to Close After Saving

Copy this into the This workbook Module

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
MsgBox "I would like to prompt users of a " _
& "public Excel file to close the file or " _
& "application after they save it so that " _
& "when they hit Save, a message box " _
& "prompts them to that effect."
End Sub

"Rutabaga" wrote:

Hello All,

I have Office 2003.

I would like to prompt users of a public Excel file to close the file (or
application) after they save it so that when they hit Save, a message box
prompts them to that effect.

Thanks in Advance

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Macro to Prompt User to Close After Saving

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
MsgBox "I would like to prompt users of a " _
& "public Excel file to close the file or " _
& "application after they save it so that " _
& "when they hit Save, a message box " _
& "prompts them to that effect."
End Sub

"Rutabaga" wrote:

Hello All,

I have Office 2003.

I would like to prompt users of a public Excel file to close the file (or
application) after they save it so that when they hit Save, a message box
prompts them to that effect.

Thanks in Advance

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
no prompt for saving after making changes Dan S Excel Discussion (Misc queries) 1 February 10th 07 07:01 AM
How do I get rid of prompt when saving Excel spreadsheet ? gabriolaislander Excel Discussion (Misc queries) 1 August 10th 06 08:37 PM
save prompt for user exit, but no save prompt for batch import? lpj Excel Discussion (Misc queries) 1 February 25th 06 02:08 AM
Save Changes Prompt at close Johnewally Excel Discussion (Misc queries) 2 March 17th 05 09:15 PM
Help with user prompt Rob Gould Excel Discussion (Misc queries) 5 March 14th 05 12:38 PM


All times are GMT +1. The time now is 07:50 AM.

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

About Us

"It's about Microsoft Excel"