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: 391
Default Cancel buttons in Msgbox


Sub MessageBoxCheck()
If MsgBox("Continue?", vbQuestion + _
vbOKCancel, "Test") = vbCancel Then
MsgBox "Cancelled"
Exit Sub
End If
'
' you process here
'
MsgBox "Processed"
End Sub


Patrick Molloy
Microsoft Excel MVP

-----Original Message-----
I am having one of the brain-blanks. For some reason,
when you click the cancel button on several of my msg or
input boxes, it does not cancel the function, but

returns
to the loop. What do I do to get the cancel buttons to
function normally...?
.

 
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
Workbook_BeforeClose(Cancel As Boolean) - Cancel won't work gpmichal Setting up and Configuration of Excel 1 May 12th 09 02:33 AM
msgbox cancel? sycsummit Excel Discussion (Misc queries) 2 February 11th 09 04:37 PM
Option Buttons/Radio Buttons John Calder New Users to Excel 7 May 16th 08 03:51 AM
Form buttons vs. ActiveX Buttons GeorgeJ Excel Discussion (Misc queries) 3 August 11th 07 09:02 PM
have toggle buttons but everytime print preview buttons move TinSandhu Excel Discussion (Misc queries) 1 October 11th 06 02:57 PM


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