LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Problem with message box return value

Hi:

I am dong something wrong, and don't know what it is. For some reason I am not detecting
the results of button presses with the following code. Can someone show me what I am doing
wrong please? OOPS is a tag I am going to further down in the macro.

Help much appreciated
sub macro()

Dim msgprompt As String
Dim msgbuttons As Integer, msgResults As Integer
msgprompt = "If you are not certain about installing the new spreadsheet click NO in the
area below." & "If you wish to proceed with installation, click YES"
msgbuttons = vbYesNo
MsgTitle = "Confirm Installation"
MsgResult = Msgbox(msgprompt, msgbuttons, MsgTitle)
Select Case msgResults
Case vbYes
GoTo oops
End Select
Range("aa1").Select
ActiveCell() = "No"
Range("a1").Select
Application.ScreenUpdating = False
and so on

to oops:




Thanks

John Baker


 
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
Carriage Return Problem Don L[_2_] Excel Discussion (Misc queries) 1 March 12th 10 07:04 PM
Lookup Entered Value and return message TKD Excel Worksheet Functions 4 January 7th 09 04:45 PM
message "Too many different cell formats" problem Ed Excel Worksheet Functions 1 March 12th 05 11:46 PM
macro to find a text and return a message jane Excel Programming 0 January 22nd 04 01:56 PM
Function Problem.... Return Value Schrades Excel Programming 3 November 12th 03 08:33 PM


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