Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default combo box of control toolbox

if I select: viewtoolbarscontrol toolbox and, when is open I take a combo
box and I put it in sheet1, how could I put the items of that comobobox?????
pd. please answerme as simple as posible because I`m new in VB
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default combo box of control toolbox

Don't under estimate yourself. From the questions you are asking you are
picking up a lot and getting much better... Here is some code to populate a
combo box from the control toolbar...

Sub FillComboBox()
With ComboBox1
.AddItem "This"
.AddItem "That"
.AddItem "The Other"
End With

End Sub

When a combo box is added it will get the name ComboBox1 by default, so this
code should add items to the box you just added. Place this code in the the
sheet that the combo box is on. (Right click the tab and select view code.)
In the code window you have the drop down where you find General and
Worksheet. You will now have ComboBox1, and it will be associated with a
bunch of different events the same as the worksheet...

HTH

"filo666" wrote:

if I select: viewtoolbarscontrol toolbox and, when is open I take a combo
box and I put it in sheet1, how could I put the items of that comobobox?????
pd. please answerme as simple as posible because I`m new in VB

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default combo box of control toolbox

thnaks, you are my favorit MVA teacher, at what hour you are in the net????

"Jim Thomlinson" wrote:

Don't under estimate yourself. From the questions you are asking you are
picking up a lot and getting much better... Here is some code to populate a
combo box from the control toolbar...

Sub FillComboBox()
With ComboBox1
.AddItem "This"
.AddItem "That"
.AddItem "The Other"
End With

End Sub

When a combo box is added it will get the name ComboBox1 by default, so this
code should add items to the box you just added. Place this code in the the
sheet that the combo box is on. (Right click the tab and select view code.)
In the code window you have the drop down where you find General and
Worksheet. You will now have ComboBox1, and it will be associated with a
bunch of different events the same as the worksheet...

HTH

"filo666" wrote:

if I select: viewtoolbarscontrol toolbox and, when is open I take a combo
box and I put it in sheet1, how could I put the items of that comobobox?????
pd. please answerme as simple as posible because I`m new in VB

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
what is code to activate a combo box in control toolbox Pogo Excel Discussion (Misc queries) 1 July 23rd 06 10:41 AM
combo box from control toolbox Hassan Merzha Excel Discussion (Misc queries) 1 June 16th 06 12:24 PM
control toolbox combo box sbhayes Excel Discussion (Misc queries) 0 February 15th 06 12:45 AM
Mystery of the moving control toolbox combo box? Don Wiss Excel Programming 2 December 26th 04 11:16 PM
No change event on control toolbox combo box when selection is the same? Don Wiss Excel Programming 0 December 26th 04 01:31 PM


All times are GMT +1. The time now is 03:13 PM.

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

About Us

"It's about Microsoft Excel"