Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

Variables values don't carry over to other Userform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frankbelly - 26 Oct 2006 22:19 GMT
I am using two different userforms.  One pops up and has a txtbox for the
user the enter information. The value of this txtbox is accessible on that
form only when I hide that form and show another, I can't access the txtbox
value from the first form.  I need the value from the txtbox on the first
form to be accessible on both forms.

Any help is GREATLY appreciated.

Thanks,
Pat Garard - 26 Oct 2006 23:45 GMT
G'Day Frank,

Declare a Global string variable. Before hiding Form1, set the Global
variable equal to the txtBox value. Have the second userform access
the value global variable.
Signature

Regards,
Pat Garard
Melbourne, Australia
_______________________

>I am using two different userforms.  One pops up and has a txtbox for the
> user the enter information. The value of this txtbox is accessible on that
[quoted text clipped - 5 lines]
>
> Thanks,
Frankbelly - 28 Oct 2006 09:08 GMT
Sorry for the late Reply.  Thank you so much Pat.  This worked Perfectly!

> G'Day Frank,
>
[quoted text clipped - 10 lines]
> >
> > Thanks,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.