PC Review


Reply
Thread Tools Rate Thread

Combo Box and smart key selection

 
 
Charles L. Snyder
Guest
Posts: n/a
 
      8th May 2008
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is smart paragraph selection and smart cursoring jmm Microsoft Word New Users 1 15th May 2009 04:58 PM
Limit selection in one Combox based on selection in another combo Greg H. Microsoft Access Forms 1 5th Sep 2008 06:03 PM
Combo box list selection based on earlier selection by user MSA Microsoft Access Form Coding 2 27th Feb 2008 05:00 PM
Combo Box selection only shows bound column info after selection made. Coby Microsoft Excel Programming 1 18th Oct 2007 02:04 AM
Combo Box selection disappearing on new record and change of option selection EmmA Microsoft Access Forms 2 17th Jun 2004 02:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:42 PM.