Try changing your code to:
Option Explicit
Dim rng As Range
Dim sText As String
Sub StartSig()
frmSignature.Show
End Sub
Sub ChooseSig(sTextFill As String)
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
ChooseSig (sTextFill)
End Sub
Private Sub cmdCancel_Click()
Unload Me
End Sub
I think you have a lot of items declared that you don't need, but then
you may not be showing me all of the code either. <smile>
Here is a very nice article on debugging techniques which will assist
you in following the values of your variables as they float through
your code.
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=410
Let me know how it goes.
--
Dawn Crosier
Microsoft MVP
"Education Lasts a Lifetime"
This message is posted to a newsgroup. Please post replies and
questions to the newsgroup so that others can learn as well.