Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
chanwando
 
Posts: n/a
Default Don't know what to call what I need?


Ok. I have created the spreadsheet, etc. Now, they want me to set it
up so that before you close the sheet a box will "pop up" and ask you
to confirm if the information you've entered is correct before closing.
I'm sure that I'll feel stupid after I find out how it's done, however
at this moment I'm at a loss...<sigh

Any help would be appreciated!

Thanks so much!

Chandra


--
chanwando
------------------------------------------------------------------------
chanwando's Profile: http://www.excelforum.com/member.php...o&userid=27123
View this thread: http://www.excelforum.com/showthread...hreadid=466339

  #2   Report Post  
Richard Buttrey
 
Posts: n/a
Default

On Fri, 9 Sep 2005 12:58:42 -0500, chanwando
wrote:


Ok. I have created the spreadsheet, etc. Now, they want me to set it
up so that before you close the sheet a box will "pop up" and ask you
to confirm if the information you've entered is correct before closing.
I'm sure that I'll feel stupid after I find out how it's done, however
at this moment I'm at a loss...<sigh

Any help would be appreciated!

Thanks so much!

Chandra


Use the Workbooks "BeforeClose" event and stick a Message box in the
Workbook_BeforeClose procedure

Rgds
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #4   Report Post  
Lookin for a job
 
Posts: n/a
Default



"Richard Buttrey" wrote:

On Fri, 9 Sep 2005 12:58:42 -0500, chanwando
wrote:


Ok. I have created the spreadsheet, etc. Now, they want me to set it
up so that before you close the sheet a box will "pop up" and ask you
to confirm if the information you've entered is correct before closing.
I'm sure that I'll feel stupid after I find out how it's done, however
at this moment I'm at a loss...<sigh

Any help would be appreciated!

Thanks so much!

Chandra


Use the Workbooks "BeforeClose" event and stick a Message box in the
Workbook_BeforeClose procedure

Rgds
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________


Based on the posters subject line: Don't know what to call what I need?, and
on the wording of their post, what are the chances of them knowing what this
means:

Use the Workbooks "BeforeClose" event and stick a Message box in the
Workbook_BeforeClose procedure


Something to think about. And no, I don't know how to do it.
  #5   Report Post  
Duke Carey
 
Posts: n/a
Default

Press the Alt-F11 key combination to open the VBA editor.
Press Ctrl-R to open the Project Explorer on the left
Double-click the This Workbook node for the workbook in question
Paste in this code



Private Sub Workbook_BeforeClose(Cancel As Boolean)

If MsgBox("Is all your input correct?", vbYesNo, "Confirm") = vbNo Then _
Cancel = True

End Sub



"chanwando" wrote:


Ok. I have created the spreadsheet, etc. Now, they want me to set it
up so that before you close the sheet a box will "pop up" and ask you
to confirm if the information you've entered is correct before closing.
I'm sure that I'll feel stupid after I find out how it's done, however
at this moment I'm at a loss...<sigh

Any help would be appreciated!

Thanks so much!

Chandra


--
chanwando
------------------------------------------------------------------------
chanwando's Profile: http://www.excelforum.com/member.php...o&userid=27123
View this thread: http://www.excelforum.com/showthread...hreadid=466339




  #6   Report Post  
chanwando
 
Posts: n/a
Default


I really appreciate the help and suggestions!

Duke Carey - I'm sorry that you had to do my work for me, but you did
it GREAT!!! It did exactly what I needed it to and now I have a happy
boss.....

(...and you're right "Lookin", I have virtually NO experience with
VB...just Excel.)

Thanks again for all the help and I even learned something new out of
the deal!

Chandra


--
chanwando
------------------------------------------------------------------------
chanwando's Profile: http://www.excelforum.com/member.php...o&userid=27123
View this thread: http://www.excelforum.com/showthread...hreadid=466339

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
Custom Function Call Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 5 September 6th 05 06:14 PM
Determining a call in a macro Mark Excel Discussion (Misc queries) 2 April 26th 05 09:06 PM
How can I do a "best match" for text entries? NeedDataHelp Excel Worksheet Functions 1 February 25th 05 12:27 AM
Can I use a variable to call up another sheet in Excel? GD Cooley Excel Worksheet Functions 1 February 13th 05 05:40 AM
Can I use a variable to call up another sheet in Excel? GD Cooley Excel Worksheet Functions 0 February 11th 05 02:47 PM


All times are GMT +1. The time now is 11:56 AM.

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"