I have an text box that I want to reference in a class.
1 : I can dim a veriable by its name e.g
Dim MyTextBox as String
MyTextBox = "Text1"
or
2 : I can pass the object e.g
Dim MyTextBox as Control
Set MyTextBox = Text1
Which veriable takes the least memory 1 or 2
1 : I can dim a veriable by its name e.g
Dim MyTextBox as String
MyTextBox = "Text1"
or
2 : I can pass the object e.g
Dim MyTextBox as Control
Set MyTextBox = Text1
Which veriable takes the least memory 1 or 2