M
MJatAflac
I have a macro I that runs a function that Warns the user that certain
specific information must be in place before continuing. I accomplish this
with a vbOkCancel message box. So if the user clicks ok, I want to continue
running the macro. If they click cancel I want to stop the execution.
I've been writing in VBA for a long time but I've never had the need for
this type of code so I have no clue on how to determine which button they
clicked or how to continue the macro if the user has clicked ok.
I feel like I need to examine the vbMsgBoxresult values but don't know what
value to look for.
Any help as always is greatly appreciated.
specific information must be in place before continuing. I accomplish this
with a vbOkCancel message box. So if the user clicks ok, I want to continue
running the macro. If they click cancel I want to stop the execution.
I've been writing in VBA for a long time but I've never had the need for
this type of code so I have no clue on how to determine which button they
clicked or how to continue the macro if the user has clicked ok.
I feel like I need to examine the vbMsgBoxresult values but don't know what
value to look for.
Any help as always is greatly appreciated.