Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Using a ComboBox Control in Excel

Hello,

I'm using Excel 2003. I have added a combobox to Sheet1. I would like to
know how to access that control both from the code behind Sheet 1, as well as
another module in the Modules folder.

I am a little more used to Access VBA and Windows Forms, and there it is as
simple as something like:

Forms("formName").Controls("controlNname").Propert y/Method


I have used the object browser but haven't found a similar "Controls"
collection to locate my combo box.

Any help would be appreciated!

Thanks,

-Scott
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Using a ComboBox Control in Excel

If I want to clear the combobox, I could use this:

Worksheets("sheet999").ComboBox1.Clear
or
Worksheets("sheet999").OLEObjects("Combobox1").Obj ect.Clear



scottydel wrote:

Hello,

I'm using Excel 2003. I have added a combobox to Sheet1. I would like to
know how to access that control both from the code behind Sheet 1, as well as
another module in the Modules folder.

I am a little more used to Access VBA and Windows Forms, and there it is as
simple as something like:

Forms("formName").Controls("controlNname").Propert y/Method

I have used the object browser but haven't found a similar "Controls"
collection to locate my combo box.

Any help would be appreciated!

Thanks,

-Scott


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
form control combobox Gail Excel Discussion (Misc queries) 7 October 2nd 09 07:27 PM
Control ToolBox ComboBox Steve D Excel Discussion (Misc queries) 1 July 1st 09 05:17 PM
Dim CTL as MSForms.Control always sets as Control/Combobox Post Tenebras Lux Excel Programming 2 August 11th 06 06:51 AM
Excel Combobox Box Control [email protected] Excel Programming 2 April 10th 06 07:48 AM
Run time combobox control in excel Anu Excel Programming 0 January 20th 04 01:11 AM


All times are GMT +1. The time now is 10:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"