Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default ComboBox Problems

Hello,
I'm having some issues with a combobox. I am using a combobox in a
userform, to give the users options to choose, but also give them the
ability to type in their own selection. The code I have is he

Private Sub Contract1_Enter()
ComboBox1.DropDown
ComboBox1.AddItem "Option 1"
ComboBox1.AddItem "Option 2"
ComboBox1.AddItem "Option 3"
ComboBox1.AddItem "Option 4"
'Use drop-down list
ComboBox1.Style = fmStyleDropDownCombo
'Combo box values are ListIndex values
ComboBox1.BoundColumn = 0
'Set combo box to first entry
ComboBox1.ListIndex = 0

End Sub

The problems I'm having are two. When I run the form for testing, it
will only show me one option at a time, and I have to scroll down to get
the others. Also, it gives me a horizontal scroll bar, which I don't
want showing. Any ideas the properties, I'm missing to get this to look
right? As you can see I'm using the Enter event, since the Initialize
event did not seem to work. Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default ComboBox Problems

try listbox

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
ComboBox problems !! Jako[_24_] Excel Programming 4 June 21st 04 04:52 AM
Having problems with adding input from combobox stevem[_5_] Excel Programming 1 April 2nd 04 03:44 AM
Combobox Visibility Problems anthonyvassallo Excel Programming 1 November 7th 03 03:30 PM
ComboBox Problems Darrin Henry Excel Programming 1 September 16th 03 01:23 AM
Combobox control problems in a grouped cell Carles Feliu Excel Programming 0 July 25th 03 01:07 PM


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