oldcitycat
Board Regular
- Joined
- Sep 23, 2011
- Messages
- 71
How do I carry theVname varaible from one sub to another?
The value thetextbox is avaiable within this sub but not If I try using it in the next sub
Thank you in advancefor any and all suggestion
OldCityCat
The value thetextbox is avaiable within this sub but not If I try using it in the next sub
Code:
[FONT=Calibri]Public Sub cbOk_Click()[/FONT]
[FONT=Calibri]Dim VName As String[/FONT]
[FONT=Calibri]VName =tbVesselName.Value[/FONT]
[FONT=Calibri]'MsgBox VName[/FONT]
[FONT=Calibri]Call ShowTXTBoxInfo[/FONT]
[FONT=Calibri]Unload Me[/FONT]
[FONT=Calibri]End Sub[/FONT]
[FONT=Calibri]Public Sub ShowTXTBoxVar()[/FONT]
[FONT=Calibri]MsgBox VName[/FONT]
[FONT=Calibri]End Sub[/FONT]
OldCityCat