Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling variables from private sub to a sub

Status
Not open for further replies.

gautammalkani

Technical User
Sep 29, 2003
51
US
Hi All

i am trying to call a variable from a private sub to a public sub. I was wondering if there is a particular syntax/ get or set functions that i need to do so.

For example I need to bring a combobox.value from a private sub to a public sub.

Thanks for your help.

Cheers

Gauta
 
You can still reference Combobox.Value from a Public Sub.

Cheers

HarleyQuinn
---------------------------------
Help us to help you,
read FAQ222-2244 before posting.
 

Gauta,

you need to read & understand VB Help regarding the DECLARATION & SCOPE of varaibles.

Skip,

[glasses] [red]Be advised:[/red]We know Newton's 3 Laws. But did you hear about the [red]FOURTH???[/red]
Only ONE fig per cookie![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top