View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Pete[_6_] Pete[_6_] is offline
external usenet poster
 
Posts: 1
Default More MsgBox questions.

I am attempting to use the Msgbox function with the Ok/Cancel buttons. the
code I have written thus far is below:

Msgbox("Message",1)

If ans = vbOk then call [subroutine]
If ans = vbCancel the exit sub

end if

end sub

The subroutine does not work when the "Ok" button is used. I have tried
other variations on this to no avail. Could anyone please assist?
--

Thanks,
Pete