Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default How does one show an intital value in the combobox

I have a simple combobox with numbers:
Private Sub ComboBox7_DropButtonClick()
ComboBox7.List = Array("1", "2", "3", "4", "5", "6", "7", "8", "9",
"10")
End Sub

I would like the "1" to appear as a default. I have tried but cant
find anything for this!

Thanks
Mike

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default How does one show an intital value in the combobox

Setting the Value property to "1" should do the trick. You can do this
through code or though the properties window.


susan wrote:
I have a simple combobox with numbers:
Private Sub ComboBox7_DropButtonClick()
ComboBox7.List = Array("1", "2", "3", "4", "5", "6", "7", "8", "9",
"10")
End Sub

I would like the "1" to appear as a default. I have tried but cant
find anything for this!

Thanks
Mike


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default How does one show an intital value in the combobox

Private Sub ComboBox7_DropButtonClick()
ComboBox7.List = Array("1", "2", "3", "4", "5", "6", "7", "8", "9",
"10")
Combobox7.ListIndex = 0
End Sub

But if you have other Combobox7 events, this might fire the event.

--
Regards,
Tom Ogilvy

"susan" wrote:

I have a simple combobox with numbers:
Private Sub ComboBox7_DropButtonClick()
ComboBox7.List = Array("1", "2", "3", "4", "5", "6", "7", "8", "9",
"10")
End Sub

I would like the "1" to appear as a default. I have tried but cant
find anything for this!

Thanks
Mike


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
select from combobox and show a price in textbox gem New Users to Excel 1 June 14th 06 11:37 AM
Selecting any cell in a column I want my ComboBox to show. How? ABP MLundqvist Excel Discussion (Misc queries) 4 March 1st 06 01:15 PM
ComboBox to show a range TimT Excel Programming 2 August 8th 05 07:58 PM
Show Filename Only in ComboBox Pulldown D.Parker Excel Discussion (Misc queries) 16 June 29th 05 02:46 PM
Show one range in a combobox and write the 2nd range! Kevin Excel Programming 1 October 17th 03 05:52 AM


All times are GMT +1. The time now is 09:33 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"