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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Allow a module sub to access a sheet object 1

Status
Not open for further replies.

TRHorn

Technical User
Feb 21, 2010
24
US
I have a sub in a module, it has to be in this module so it can't be located in the sheet I'm operating in.

I have a combo box loacated on a sheet. I need to access the values in the combo box from the module.

Any Ideas? Can I some how dim the combo box in the module?

 
If the sub always needs these values, you could pass the combobox to the sub when you call the sub.

SubDoSomething(cboComboBox)
 


hi,

Code:
  with Sheets("The Sheet with control").shapes("The control name")
    'now access the control's properties & methods.

  end with


Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
That is exactly what I needed thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top