PC Review


Reply
Thread Tools Rate Thread

how cani create a pop up reminder when closing excel?

 
 
=?Utf-8?B?cmlsZXkyMDA3?=
Guest
Posts: n/a
 
      25th Sep 2007
i want to create a pop up window so when i x excel, it pops up like an error
message. so it says 'did you remember to update total of customers' with a
yes and return button. Please help me
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWlrZSBI?=
Guest
Posts: n/a
 
      25th Sep 2007

Hi,

Alt + F11 to open vb editor. Double click this workbook and paste this in

Private Sub Workbook_BeforeClose(Cancel As Boolean)
msg = "Did you remember to update total of customers?"
response = MsgBox(msg, vbYesNo)
If response = vbNo Then
Cancel = True
End If
End Sub

Mike
"riley2007" wrote:

> i want to create a pop up window so when i x excel, it pops up like an error
> message. so it says 'did you remember to update total of customers' with a
> yes and return button. Please help me

 
Reply With Quote
 
JW
Guest
Posts: n/a
 
      25th Sep 2007
Do you mean when you close a particular workbook? If so, open the
VBE, select the ThisWorkbook module and place this:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
If MsgBox("Did you remember to update total " & _
"of customers?", vbYesNo) = vbNo Then Cancel = True
End Sub

riley2007 wrote:
> i want to create a pop up window so when i x excel, it pops up like an error
> message. so it says 'did you remember to update total of customers' with a
> yes and return button. Please help me


 
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
can i create a reminder to pop up in excel? =?Utf-8?B?TGVlbw==?= Microsoft Excel Programming 8 25th May 2010 08:13 PM
can i create a reminder to pop up in excel 5 days before? JCORTEZ Microsoft Excel Misc 4 28th Nov 2008 01:33 PM
Pop up reminder when closing Excel Gareth Wretham Microsoft Excel Programming 2 2nd Jul 2008 12:29 PM
Create task request from Excel: reminder problem Gauthier Microsoft Outlook VBA Programming 5 25th Jan 2008 01:20 PM
i enter a lot of data in xl. cani create a form =?Utf-8?B?bmsgc3VyZXNo?= Microsoft Excel Misc 1 4th Nov 2006 11:36 AM


Features
 

Advertising
 

Newsgroups
 


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