LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Making a combo box user freindly

I am using a form in a spreadsheet to select customers. I can use my mouse
and select the customer. I would like to type in the box to select the
customer by name instead. I have seen it work in other applications. I just
cannot figure out how to make it work.

Private Sub cboCustomerID_Change()
If Not IsNull(Me.cboCustomerID) Then
LoadStoreList
LoadSOForCustomer Me.cboCustomerID
End If
Me.cboStoreID.SetFocus
End Sub

Private Sub cboStoreID_Change()
If Not IsNull(Me.cboStoreID) Then
LoadSOForStore Me.cboStoreID
Else
If Not IsNull(Me.cboCustomerID) Then
LoadSOForCustomer Me.cboCustomerID
End If
End If
Me.lstShippingOrders.SetFocus
End Sub

When I have selected the customer with the mouse or start typing I loose
focus, because of the Me.cboStoreID.SetFocus after the End If.

This was written by some one else and I am trying to modify it to make it
more user friendly.

Thanks for the help.

--
Thanks
Mark C.
 
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
Making User defined functions available in all new workbooks Alco Engineer[_2_] Excel Worksheet Functions 5 March 10th 09 10:15 PM
making NT user/login user appear in a cell [email protected] Excel Worksheet Functions 1 March 3rd 09 03:41 AM
Using VBA to make a user input a note when making changes to a cel Adam Ronalds[_2_] Excel Worksheet Functions 3 June 24th 08 05:54 PM
Making a macro run when the user closes a workbook Nicke[_4_] Excel Programming 0 November 24th 03 02:54 PM
Making a macro run when the user closes a workbook Cesar Zapata[_2_] Excel Programming 0 November 24th 03 02:43 PM


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