Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I am running Excel 2003 and have created a Mssg Box for a workbook that
requires a Yes / No response. For some reason, the 'Yes' response needs to be 'double clicked' to activiate it. Can someone tell me how, or if it can be changed to 'single click'. The code I have is: Sub ClearDoc() Dim response As Long answer = MsgBox("Do you have another Agency Billing to complete ?", vbYesNo + vbQuestion) If answer = vbYes Then Sheets("Input").Select Range("A6:h35").Select Selection.ClearContents Range("A6").Select Else Sheets("Input").Select Range("A6").Select MsgBox "Costs have been recorded. This file will now close", vbInformation Application.ScreenUpdating = True ActiveWorkbook.Close SaveChanges:=False End If End Sub Thanks -- Linda |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
replace VBA run-time error message with custom message | Excel Programming | |||
Replace Excel Message w/Custom Message | Excel Programming | |||
Intercept/replace standard 'cell protected' message with my own message? | Excel Programming | |||
Opening an attachment of a message that has a message as attachmen | Excel Programming | |||
Displaying a message in a message box without requiring user to click anything to proceed | Excel Programming |