M
mathel
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
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