I have a userform with a command buttion that opens a text file. The text file name is stored in a string variable. I would like to pass that string variable to a text box in the same userform. Any suggestions? Thansk in advance.
I have a userform with a command buttion that opens a text file. The text file name is stored in a string variable. I would like to pass that string variable to a text box in the same userform. Any suggestions? Thansk in advance.
Good afternoon wz4np1
Just make sure that your variables are Dimmed, and the Dim statement is the first line in the module containing your userform code, ie., not in any of the routines.
The variable, once given a value, will then be accessible to all controls on the form.
HTH
DominicB
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks