View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
merjet merjet is offline
external usenet poster
 
Posts: 812
Default Undo a change in a userform

Your post could have been much clearer, but I guessed that you may
want something like this.

Private Sub ComboBox1_Change()
Static aPrev As String
iRtn = MsgBox("Are you sure?", vbYesNoCancel)
If iRtn = 7 Then
ComboBox1.Value = aPrev
End If
aPrev = ComboBox1.Value
End Sub

Hth,
Merjet