Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello all, I don't have a clue why when I click on the OK or Cancel
button the MsgBox does not go away. The only way I can get out is to kill Excel with Control/Alt Delete and end Excel. How do I program the cancel button to end the sub or at least dismiss the MsgBox when clicking OK or Cancel? Any suggestions? Thank you all for your assistance, Ron Sub testfollowup() Dim c As Range For Each c In ActiveSheet.Range("K12:AI10000") If c.Font.ColorIndex = 3 Then MsgBox "Please make additional corrections", vbExclamation + vbOKCancel, "TEST" Else MsgBox "Data validated, good job!" & vbNewLine & "If the sheet is to be printed, clicking on the Print Setup button prepares the file for printing.", vbExclamation + vbOKCancel, "TEST" End If Next c End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cancel (Dismiss) Input Box | Excel Programming | |||
msgbox | Excel Programming | |||
dismiss blanks in lookup | Excel Worksheet Functions | |||
Dismiss a dialog box (Via a Macro) | Excel Programming | |||
Preventing Form Dialog dismiss (Red X) | Excel Programming |