FryGirl
Well-known Member
- Joined
- Nov 11, 2008
- Messages
- 1,368
- Office Version
- 365
- 2016
- Platform
- Windows
Hi All,
This works fine to retrieve the results from a MsgBox function and return the results to the sub that initiated the call, but would love to know how to pass the MsgBox answer from a normal sub back to the other sub.
<strike></strike>
This works fine to retrieve the results from a MsgBox function and return the results to the sub that initiated the call, but would love to know how to pass the MsgBox answer from a normal sub back to the other sub.
Code:
Sub MsgboxYes()
If MsgBox_Ans = vbYes Then MsgBox "You Seleted Yes"
End Sub
Code:
[LEFT][COLOR=#222222][FONT=Verdana]Function MsgBox_Ans()[/FONT][/COLOR]
[COLOR=#222222][FONT=Verdana] MsgBox_Ans = MsgBox("Yes or No", vbYesNo)[/FONT][/COLOR]
[COLOR=#222222][FONT=Verdana]End Function[/FONT][/COLOR][/LEFT]