#1   Report Post  
Marc
 
Posts: n/a
Default Combo help?

I have put combo box control (from Forms toolbar) on worksheet.
I have selected Input range from H11 to H15 and Drop down lines = 5.

How can I make that starting index in combo is allways 0, so that none value
is selected before I click combo? It would be nice to set this on workbook
open, but I don't know how.

Thank you.


  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

Put something like this in the ThisWorkbook code module:

Private Sub Workbook_Open()
Sheets(1).DropDowns(1).Value = 0
End Sub




In article , "Marc"
wrote:

I have put combo box control (from Forms toolbar) on worksheet.
I have selected Input range from H11 to H15 and Drop down lines = 5.

How can I make that starting index in combo is allways 0, so that none value
is selected before I click combo? It would be nice to set this on workbook
open, but I don't know how.

Thank you.

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Maybe something like:

Option Explicit
Private Sub Workbook_Open()
Worksheets("sheet1").DropDowns("drop down 1").ListIndex = 0
End Sub



Marc wrote:

I have put combo box control (from Forms toolbar) on worksheet.
I have selected Input range from H11 to H15 and Drop down lines = 5.

How can I make that starting index in combo is allways 0, so that none value
is selected before I click combo? It would be nice to set this on workbook
open, but I don't know how.

Thank you.


--

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
Dynamic Combo Box benjarfer Excel Worksheet Functions 2 April 8th 05 02:17 PM
connecting combo boxes to yield data in another cell. TxN8tv Excel Discussion (Misc queries) 0 March 14th 05 04:07 PM
extract data from combo box n use it in SQL benj Excel Discussion (Misc queries) 2 February 16th 05 09:54 AM
dynamic combo boxes tjb Excel Worksheet Functions 2 January 25th 05 07:33 PM
How do I autofill combo boxes with their destination cell? Defoes Right Boot Excel Worksheet Functions 3 January 10th 05 12:49 PM


All times are GMT +1. The time now is 08:09 AM.

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"