Power Query Course in Spanish
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 6 of 6

Thread: Please help a poor lost girl!

  1. #1
    Board Regular
    Join Date
    Apr 2002
    Posts
    76
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default


    Does anyone know what code I need to put into my form so that when hit command button 1, the cursor goes straight to combobox3. Also where do I put it? In the Exit code for command button 1 or what?

    Janie

  2. #2
    BatCoder
    Join Date
    Feb 2002
    Location
    Turkey
    Posts
    816
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default

    combobox3 on sheet or form?
    Suat

  3. #3
    Board Regular
    Join Date
    Apr 2002
    Posts
    76
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On a userform

    x

  4. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Newcastle, UK
    Posts
    1,174
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    if the button is on the shet or userform (i.e. to load it).

    right-click on the button, select view code.

    you should get

    Private Sub CommandButton1_Click()

    End Sub.

    Type:

    ComboBox1.SetFocus

    you should have

    Private Sub CommandButton1_Click()

    ComboBox1.SetFocus

    End Sub

    should do the trick!


    "Have a good time......all the time"
    Ian Mac

  5. #5
    BatCoder
    Join Date
    Feb 2002
    Location
    Turkey
    Posts
    816
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default

    Private Sub CommandButton1_Click()
    ComboBox3.SetFocus
    End Sub

    And if you also want to combobox3 dropdown then

    Private Sub CommandButton1_Click()
    ComboBox3.SetFocus
    SendKeys "%{DOWN}"
    End Sub


    Regards
    Suat

  6. #6
    Board Regular
    Join Date
    Apr 2002
    Posts
    76
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks guys, I owe you one

    xx

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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