Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Combo Box and smart key selection

Hi

I have a spreadsheet (windows xp, MS Office 2003) with several
userforms. One of these has a combo box, populated from the following
code:

Private Sub UserForm_Initialize()

Dim myArr As Variant
With Me.cbStdOP
.ColumnCount = 9 'columns A:I
.ColumnWidths = "180;0;0;0;25;0;0;0;0" 'hide the last 8
columns
End With

With Worksheets("AutoEntry")
myArr = .Range("a2", .Cells(.Rows.Count, "A").End(xlUp)) _
.Resize(, Me.cbStdOP.ColumnCount)
End With

Me.cbStdOP.List = myArr

End Sub

This shows in the combo box only the column A (description) and column
E (numerical codes) entries from the 'AutoEntry' worksheet. The user
scrolls thru these and selects from these choices in the combo box,
and the resulting data is placed into another ws ('Operations'). The
rows in 'AutoEntry' are sorted by column E (numerical codes).

I know this is not the best way to do this. I would like the user to
be able to type the first numbers of the codes and have the combo box
go to that selection (there are 1500 rows to scroll through on the
AutoEntry ws).

Ideally, there would be a radio button to search by description OR by
numerical code, and the combo box would show the matches.


Thanks for any guidance!

cls
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
Combo box selection will not calculate Perrysbox2 Excel Discussion (Misc queries) 0 June 11th 09 07:12 PM
Combo Box selection only shows bound column info after selection made. Coby Excel Programming 1 October 18th 07 02:04 AM
Populate one combo box based on the selection of another combo box Alex Excel Programming 8 April 19th 07 06:40 PM
Using VB to change Combo box selection Richard Clayton[_2_] Excel Programming 0 October 8th 04 07:36 PM
Using VB to change Combo box selection Richard Clayton Excel Programming 0 October 8th 04 03:21 PM


All times are GMT +1. The time now is 10:33 PM.

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"