Results 1 to 9 of 9

Thread: Block User From Editing The Combo Box Text Value

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Senior Member
    Join Date
    Oct 2011
    Posts
    135
    Rep Power
    15
    Hi,

    I had tried unsuccessfully with other controls

    To Restrict the selection in the combobox, I added the following code:

    Code:
    Private Sub ComboBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
      If KeyCode = 40 Then
        With Me.ComboBox1
          If .ListIndex + 1 = .ListCount Then KeyCode = 0
        End With
      End If
    End Sub
    Here is the latest correct version
    Attached Files Attached Files

Similar Threads

  1. User Input requested Search box (floating of static)
    By william516 in forum Excel Help
    Replies: 0
    Last Post: 07-22-2013, 07:53 PM
  2. Solve Block If Without End If Problem
    By jffryjsphbyn in forum Excel Help
    Replies: 3
    Last Post: 06-12-2013, 11:06 AM
  3. Linking a table to a text box
    By Safal Shrestha in forum Excel Help
    Replies: 6
    Last Post: 04-25-2013, 10:37 AM
  4. Find keyword using multiple Text box and combox value
    By Ryan_Bernal in forum Excel Help
    Replies: 2
    Last Post: 03-07-2013, 06:11 PM
  5. Make Text to Numbers Code More User Friendly
    By mrmmickle1 in forum Excel Help
    Replies: 10
    Last Post: 11-20-2012, 06:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •