+ Reply to Thread
Results 1 to 7 of 7

How to SetFocus to ComboBox Embedded in Cell

  1. #1
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    How to SetFocus to ComboBox Embedded in Cell

    I cannot seem to figure out how to activate an embedded combobox on a worksheet. The SetFocus method is not available as it is for UserForms. I have a DropDown method but that does not actually activate the combobox and if I press the down arrows to attempt to select an item from the list, the active cell moves and the dropdown list stays visible. What am I missing here? Is it not possible to activate an embedded combobox?

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: How to SetFocus to ComboBox Embedded in Cell

    Try activate....
    Elegant Simplicity............. Not Always

  3. #3
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: How to SetFocus to ComboBox Embedded in Cell

    There is no Activate method either.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: How to SetFocus to ComboBox Embedded in Cell

    How did you create the combobox?
    If posting code please use code tags, see here.

  5. #5
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: How to SetFocus to ComboBox Embedded in Cell

    Developer tab>Insert>Active X Controls>ComboBox

    The formula if I click on the combobox in design mode is =EMBED("Forms.ComboBox.1","")

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: How to SetFocus to ComboBox Embedded in Cell

    Hello yay_excel,

    Here is a macro that activates "ComboBox1" on Sheet1.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  7. #7
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: How to SetFocus to ComboBox Embedded in Cell

    Ahhh declaring it as an OLEObject solved my issue. Thank you!

+ 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