rossmcl
Programmer
- Apr 18, 2000
- 128
Hi.
I am using a form in Word. Want to take a value from a textbox (lets call it variable A, and use that in a module behind the on-click of a button on the form.
It is fine if I use the variable A in the on_click procedure. How do I use it in a function called during the on_click procedure.
Is there any examples of this that someone has. This should be simple but I cant see what I am doing wrong.
eg
Option Explicit
Public a As String
Public Sub CommandButton1_Click()
a = Me.TextBox1.Value
TableCreate
End Sub
What syntax do I have to put in TableCreate to 'grab' this value?
I am using a form in Word. Want to take a value from a textbox (lets call it variable A, and use that in a module behind the on-click of a button on the form.
It is fine if I use the variable A in the on_click procedure. How do I use it in a function called during the on_click procedure.
Is there any examples of this that someone has. This should be simple but I cant see what I am doing wrong.
eg
Option Explicit
Public a As String
Public Sub CommandButton1_Click()
a = Me.TextBox1.Value
TableCreate
End Sub
What syntax do I have to put in TableCreate to 'grab' this value?