RE: Text box values in user forms
- From: Joanne <Joanne@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 27 May 2005 13:59:49 -0700
Hello,
Here are the two routines, one is straight from a book I have that I would
like to modify if I could only get it to work. The message box keeps
erroring out and saying that there is no variable declared.
Thank you very much for your help.
_______________________________________
Option Explicit
Dim rng As Range
Dim sText As String
Sub StartSig()
frmSignature.Show
End Sub
Sub ChooseSig()
MsgBox sTextFill
End Sub
(This is the user form)
Public sTextFill As String
Option Explicit
Sub cmdAddSig_Click()
Me.Hide
Dim stSigText As String
sTextFill = Me.txtName.Text
Signature.ChooseSig
End Sub
Private Sub cmdCancel_Click()
Unload Me
End Sub
"Joanne" wrote:
> I'm sorry to appear to thick, but how do I transfer the value of a text box
> that is in a user form to a routine that is in another procedure? I keep
> getting an error that the variable is not set but it is!
>
> Thanks very much.
.
- Follow-Ups:
- Re: Text box values in user forms
- From: Dawn Crosier
- Re: Text box values in user forms
- References:
- Text box values in user forms
- From: Joanne
- Text box values in user forms
- Prev by Date: Re: Search within String
- Next by Date: Footer in Excel
- Previous by thread: Re: Text box values in user forms
- Next by thread: Re: Text box values in user forms
- Index(es):
Relevant Pages
|