View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Pat Pat is offline
external usenet poster
 
Posts: 122
Default Cancel to take focus

With the following example messagebox the Ok button by default takes the
focus. What do I need to add to allow the Cancel button to take the focus?

If IsEmpty(Cells(22, 11)) Then
MsgBox "Cancel has the focus"
Exit Sub
End If

Thank you if you can help out.
Pat