Consecutive MSG boxes

L

LB79

I have a work book that give tips using consecutive MSG boxes but i wan
to give the user the option to close the consecutive tips without havin
to read them all.

Below is the code i have tried but when i use it i keep getting END I
and END SUB errors.

Is anyone able to help me?

Also - can i use ContinueCancel?

Many thanks!

--------------------------------
Sub Instruction()

If MsgBox("1. MSG 1.", vbContinueCancel, "Help") = vbCancel Then
If MsgBox("2. MSG 2.", vbContinueCancel, "Help") = vbCancel Then
End If
End Su
 
B

Bernie Deitrick

LB,

If MsgBox("1. MSG 1.", vbOKCancel, "Help") = vbCancel Then
Exit Sub
End If
If MsgBox("2. MSG 2.", vbOKCancel, "Help") = vbCancel Then
Exit Sub
End If
If MsgBox("3. MSG 3.", vbOKCancel, "Help") = vbCancel Then
Exit Sub
End If
If MsgBox("4. MSG 4.", vbOKCancel, "Help") = vbCancel Then
Exit Sub
End If


ad nauseum...

HTH,
Bernie
MS Excel MVP
 
Top