Darren Smith
Well-known Member
- Joined
- Nov 23, 2020
- Messages
- 631
- Office Version
- 2019
- Platform
- Windows
I`ve created a Module Macro see below to open the user form.
Can`t work out how to activate the form.
Because I replace the worksheet with one of the same names I can`t put the code on to the worksheet itself.
Can`t work out how to activate the form.
Because I replace the worksheet with one of the same names I can`t put the code on to the worksheet itself.
VBA Code:
Private Sub Open_UserForm()
Dim ws As Worksheet
Set ws = ThisWorkbook.Worksheets("Job Card Master")
If ws.Activate Then
Body_And_Vehicle_Type_Form.Show False
End If
End Sub