FryGirl
Well-known Member
- Joined
- Nov 11, 2008
- Messages
- 1,368
- Office Version
- 365
- 2016
- Platform
- Windows
I have a Userform which is activated with the double clicking of a specific column. All this is working, but what I need is to have TextBox2 reference a cell off of another sheet.
Not sure how to reference the other sheet. TextBox1 will show the current activecell contents on the activesheet, but TextBox2 should show the contents of what is on Shee2.
Not sure how to reference the other sheet. TextBox1 will show the current activecell contents on the activesheet, but TextBox2 should show the contents of what is on Shee2.
Code:
Private Sub UserForm_Activate()
Me.TextBox1.ControlSource = ActiveCell.Parent.Name & "!" & ActiveCell.Address
Me.TextBox2.ControlSource = ActiveCell.Offset(, 5).Parent.Name & "!" & ActiveCell.Offset(, 5).Address
End Sub