lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I have 2 forms. UserForm1 and UserForm2. Do I need to say
UserForm2.Label1.Caption
or just
Label1.Caption
I did "Label1.Caption" and everything work fine, it is not effecting the UserForm1
The code below is for UserForm2
I have 2 forms. UserForm1 and UserForm2. Do I need to say
UserForm2.Label1.Caption
or just
Label1.Caption
I did "Label1.Caption" and everything work fine, it is not effecting the UserForm1
The code below is for UserForm2
Code:
Private Sub myadd_Click()
UserForm2.Label1.Caption = UserForm2.Label1.Caption + 1
End Sub
Private Sub mysub_Click()
Label1.Caption = Label1.Caption - 1
End Sub