LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
bw bw is offline
external usenet poster
 
Posts: 74
Default Select Method from Combo Box

My Form uses the following code (shown below).
This code has been working well for me, but I'd like to change it to work in
a different way.

Currently, I scroll to find the item I want, and then click on it. If I try
to type the item I want, it selects the first item with the first matching
character in the list.

I would like to be able to type the value I want (to autofill with the
values in the list) and/or to scroll to the item I want with the keyboard,
and then press enter or click to select the item.

Will someone show me how?
Thanks,
Bernie

Option Explicit

Private Sub CombinedBankNames_Change()
MsgBox CombinedBankNames.Value
boxvalue = CombinedBankNames.Value
Call MoveBankData
End Sub

Private Sub UserForm_Initialize()
Dim myCell As Range
For Each myCell In Worksheets("BankData").Range("AR2:AR999").Cells
If myCell.Value = "" Then
'do nothing
Else
Me.CombinedBankNames.AddItem myCell.Value
End If
Next myCell
End Sub


 
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 Method Failing cmk18[_8_] Excel Programming 2 July 11th 05 11:53 PM
Select Method of Sheets Brenda Meza via OfficeKB.com Excel Programming 2 May 20th 05 12:37 AM
combo box dropdown method Peter Bailey[_2_] Excel Programming 5 October 31st 04 09:45 AM
why is select method invalid when sharing andy gilhooly Excel Programming 1 May 27th 04 04:36 PM
Help with Select Case or Best Method Christina[_4_] Excel Programming 1 November 5th 03 06:15 PM


All times are GMT +1. The time now is 02:04 AM.

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"