AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,072
- Office Version
- 2019
- 2010
- Platform
- Windows
On my form I have a textbox1 control and this code In Form Activate
I've tried various things, Inside quotes, with & without "Me" but keep getting Type Mismatch errors.
I can't see why this shouldn't work. Any reason ? Thanks.
Code:
action2 Me.TextBox1, "fred"
Sub action2(tb As TextBox, tt As String)
tb.Text = tt
End Sub
I've tried various things, Inside quotes, with & without "Me" but keep getting Type Mismatch errors.
I can't see why this shouldn't work. Any reason ? Thanks.