+ Reply to Thread
Results 1 to 11 of 11

ActiveX ComboBox

  1. #1
    Registered User
    Join Date
    01-13-2011
    Location
    new york, usa
    MS-Off Ver
    Excel 2007
    Posts
    52

    ActiveX ComboBox

    Hi,

    When entering data in a combobox is there a way to 'jump' to the next combobox the same way if i were in cell A1 to 'jump' to cell A2 by pressing 'enter' ?

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: ActiveX ComboBox Help

    try using tab instead of enter, otherwise, you may have to use that pointer/clicker thingy .
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Registered User
    Join Date
    01-13-2011
    Location
    new york, usa
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: ActiveX ComboBox Help

    C'mon...

    Is there another way of autofilling my entry in a cell other then a combobox?
    Something like 'google search that autofills your query

  4. #4
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: ActiveX ComboBox Help

    Sorry hqradio, my attempt at humour was partly based on my vague understanding of what you need. Try using code like
    Please Login or Register  to view this content.
    Let me know if you need more assistance.

  5. #5
    Registered User
    Join Date
    01-13-2011
    Location
    new york, usa
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: ActiveX ComboBox Help

    Not @ computer now but I will sure check the second I get there.....

  6. #6
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: ActiveX ComboBox Help

    I don't know at the moment if the code I gave you will work as I didn't use ActiveX comboboxes but I will give it a go now.

  7. #7
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: ActiveX ComboBox Help

    Please excuse my code as it does not apply to sheet side comboboxes. I will send this on to the gurus that will know definitively whether or not this can be accomplished. As it is with what I was trying to do, it wouldn't work as per your requirements.

  8. #8
    Registered User
    Join Date
    01-13-2011
    Location
    new york, usa
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: ActiveX ComboBox Help

    is there a code that when i change a certain cell (eg A1) that when i press 'enter' it should jump to a different cell (eg B22)??

    any help would be greatly appreciated

  9. #9
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: ActiveX ComboBox Help

    Hi hqradio
    If you're working with this
    when i change a certain cell (eg A1) that when i press 'enter' it should jump to a different cell (eg B22
    try this code
    Please Login or Register  to view this content.
    If you're working with this
    When entering data in a combobox is there a way to 'jump' to the next combobox the same way if i were in cell A1 to 'jump' to cell A2 by pressing 'enter'
    try this code
    Please Login or Register  to view this content.
    In either case the code will go in the sheet module.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  10. #10
    Registered User
    Join Date
    01-13-2011
    Location
    new york, usa
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: ActiveX ComboBox Help

    try this code
    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Target.Address = "$A$1" Then
    Exit Sub
    Else
    Range("B22").Activate
    End If
    End Sub
    this works great, but can i use this a couple of times in one sheet at different cells?

    Quote Originally Posted by jaslake View Post
    If you're working with thistry this code
    Please Login or Register  to view this content.
    In either case the code will go in the sheet module.
    this works great but it jumps to the next combobox even when i change 1 letter, i use a list of items and i want it to change only when i press "enter"

    also as i said i use a list of items in the combobox, why do i only see 1 column of my items? why cant i see (in the combobox) all columns of my list?

  11. #11
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: ActiveX ComboBox Help

    Hi hqradio

    There's several ways to do this
    can i use this a couple of times in one sheet at different cells
    here's but one
    Please Login or Register  to view this content.
    Regarding the ComboBox approach, there's an example of how to do this
    i use a list of items and i want it to change only when i press "enter"
    at this linkhttp://www.contextures.com/xldataval10.html#Properties
    To deal with this
    in the combobox, why do i only see 1 column of my items
    you need to change the ComboBox ColumnCount Property.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1