Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Message Box Pop-Up

I would like to have a message box pop up when I save as to remind me to
change the date on my report (It's a week schedule so I don't think there is
a way to have it automatically update each date) I tried copying and pasting
a code I found on here, but it doesn't work. Can anyone help me out.
Thanks! Alicia Rittenhouse
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Message Box Pop-Up

Hi Alicia

something along the lines of
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
If MsgBox("Have you changed the date?", vbYesNo, "Check") = vbNo Then
Cancel = True
Exit Sub
End If
End Sub

- this needs to go in the ThisWorkbook module of your workbook - not in a
normal code module - in the VBE window - you should see your workbook's name
in bold on the left hand side of the screen (if not, choose view / project
explorer) .. under the name you should see the sheets listed and then
ThisWorkbook. Double click on ThisWorkbook and put the code in the right
hand side of the screen.

Cheers
JulieD

"Alicia Rittenhouse" wrote in
message ...
I would like to have a message box pop up when I save as to remind me to
change the date on my report (It's a week schedule so I don't think there
is
a way to have it automatically update each date) I tried copying and
pasting
a code I found on here, but it doesn't work. Can anyone help me out.
Thanks! Alicia Rittenhouse



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
CDO.Message Andrea Excel Discussion (Misc queries) 2 April 1st 07 10:35 AM
#DIV/0! message rjc_29 Excel Discussion (Misc queries) 1 January 16th 06 12:52 PM
changing the message in an error message The Villages DA Excel Worksheet Functions 2 February 18th 05 05:30 PM
Message Box Powlaz Excel Programming 2 August 6th 04 12:07 AM
Displaying a message in a message box without requiring user to click anything to proceed Android[_2_] Excel Programming 2 June 25th 04 06:44 PM


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