TheWennerWoman
Active Member
- Joined
- Aug 1, 2019
- Messages
- 270
- Office Version
- 365
- Platform
- Windows
Hello,
I have this
How can I pass "Ans" into the userform so that the code there knows what it is?
Many thanks.
I have this
VBA Code:
Dim Ans As VbMsgBoxResult
Const StrTitle As String = "Master Edit Tool"
If Sheet4.Range("BJ" & ActiveCell.Row).Value <> 0 Then
Ans = MsgBox ("The record you have selected to edit has multiple lines, any changes made here will affect all similar records!" & vbCr & vbCr & "Select Yes if you wish to do this or No if you only want to edit the one entry!", vbYesNo + vbQuestion, StrTitle)
End If
Load UserForm1
UserForm1.MultiPage1.Value = 0
UserForm1.Show
How can I pass "Ans" into the userform so that the code there knows what it is?
Many thanks.