+ Reply to Thread
Results 1 to 10 of 10

How do you open a file with the cursor in a combo box?

  1. #1
    Registered User
    Join Date
    04-14-2012
    Location
    Santa Barbara
    MS-Off Ver
    Excel 2007
    Posts
    8

    How do you open a file with the cursor in a combo box?

    I want my end user to be able to open an excel file which I'm using as a form. I have combo boxes where I want the cursor to be so the user can easily start entering information. When excel opens, the cursor currently goes to an unprotected regular cell. How do I designate the cursor to start in the combo box I want the user to start in?

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: How do you open a file with the cursor in a combo box?

    Does:
    Please Login or Register  to view this content.
    Work?
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    04-14-2012
    Location
    Santa Barbara
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: How do you open a file with the cursor in a combo box?

    Nope, but thanks for trying. I replaced "C4" with "Combobox1" and Combobox1, but neither worked. I also tried replacing with "B20" - an unlocked cell in my worksheet and it didn't open to that cell. Also tried replacing "Worksheet" with "Sheet11" - the name assigned to that sheet, and that didn't work. Any other clues?

  4. #4
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: How do you open a file with the cursor in a combo box?

    Hi,

    Try this

    Please Login or Register  to view this content.
    Please take time to read the forum rules

  5. #5
    Registered User
    Join Date
    04-14-2012
    Location
    Santa Barbara
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: How do you open a file with the cursor in a combo box?

    OK, that didn't seem to work either. I'm new at this and must be doing something wrong.
    I've attached a sample file below so you can see what I'm trying to do. I want the OrderForm worksheet to open with the cursor in the ClinicianName combobox which will eventually overlay the drill down at D4. That way the user can just start typing the name and then TAB or ENTER to exit the box, moving to D5.

    Clinician Order Form - test.xlsm

    I'm very gracious for any help that can be provided.

  6. #6
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: How do you open a file with the cursor in a combo box?

    try this
    Please Login or Register  to view this content.
    Regards, John55
    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.

    ...enjoy -funny parrots-

  7. #7
    Registered User
    Join Date
    04-14-2012
    Location
    Santa Barbara
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: How do you open a file with the cursor in a combo box?

    Thanks John, but it still didn't work. Were you able to get it to open in the combobox? Mine just opens in the cell where I last saved it. And yes, I am saving then closing all of the way out and then re-opening. Any other tips?

    Chris

  8. #8
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: How do you open a file with the cursor in a combo box?

    it just shows yr combobox...
    see the file
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-14-2012
    Location
    Santa Barbara
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: How do you open a file with the cursor in a combo box?

    That worked! The drilldown now shows on the combobox. I see you opened another window to enter the code. Do you need to open a new window for each type of code? You probably saw that I had a few things running there.

    The other step is to have it jump into Description1 (combobox) when TAB/ENTER out of D16.

    Can you also recommend a good site where I can learn some of this basic coding language?

    Thanks for your help. I've been working on this for a few days now.


    Chris

  10. #10
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: How do you open a file with the cursor in a combo box?

    it works because the code is added in ThisWorkbook, click on it and you will see the code.
    if you want to jump after you select what you want in the first combobox try this
    Please Login or Register  to view this content.
    just a simple search...and you find a lot of sites...
    http://www.excelforum.com/excel-gene...additions.html
    Last edited by john55; 07-11-2012 at 03:13 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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