AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,045
- Office Version
- 2019
- 2010
- Platform
- Windows
I'm passing a Range to my Form via a Property
Then I attempt to populate that range (which is a single cell)
I get error 1004 Application-defined or object-defined error
At this point rng.Address is $A$2 (which is correct) and txtTest is a valid string.
What am I doing wrong ? Thanks.
Code:
Dim Rng as Range
Public Property Let rRange(z as Range)
Set Rng= z
End Property
Code:
Private Sub cmdApply_Click()
Worksheets("Sheet1").Range(rng).Value = Me.txtTest
End Sub
At this point rng.Address is $A$2 (which is correct) and txtTest is a valid string.
What am I doing wrong ? Thanks.