A
AlanN
Can someone tell me what's wrong with this? I keep getting the error "else without if"
Sub test()
Dim Msg, Style, Title
Msg = "Do you want to go ahead and continue setting up the individual store pages?"
Style = vbYesNo + vbCritical + vbDefaultButton2
Title = "Individual Store Pages"
Response = MsgBox(Msg, Style, Title)
If Response = vbYes Then GoTo Reports
Else
GoTo Endit
End If
Reports:
code
Endit:
more code
End Sub
TIA, Alan N
Sub test()
Dim Msg, Style, Title
Msg = "Do you want to go ahead and continue setting up the individual store pages?"
Style = vbYesNo + vbCritical + vbDefaultButton2
Title = "Individual Store Pages"
Response = MsgBox(Msg, Style, Title)
If Response = vbYes Then GoTo Reports
Else
GoTo Endit
End If
Reports:
code
Endit:
more code
End Sub
TIA, Alan N