+ Reply to Thread
Results 1 to 10 of 10

Macro for autocomplete

  1. #1
    Registered User
    Join Date
    12-01-2016
    Location
    Kyiv
    MS-Off Ver
    2016
    Posts
    10

    Macro for autocomplete

    Hi,

    1) The list of names on the sheet2.
    2) When enter first letters in Column A macro has to show autocomplete in cell on the sheet1.

    You may find example as attachment.
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,016

    Re: Macro for autocomplete

    Here is a link that describes what you want without using VBA. http://www.ozgrid.com/Excel/autocomplete-validation.htm

    Now .... I have Excel 2007 .. so I can't help you find the setting in Excel 2016 but it must be there somewhere.

    In 2007 it is located : Excel Options (Upper Left) / Advanced / Editing Options (select check box "Enable AutoComplete for cell values"


    Thanks for asking this question, it is a 'tool' I wasn't aware of with the information included in the URL link above.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,982

    Re: Macro for autocomplete

    The procedure described by Logit is the same for Excel 2016
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    12-01-2016
    Location
    Kyiv
    MS-Off Ver
    2016
    Posts
    10

    Re: Macro for autocomplete

    Thanx for reply.

    I don't have possibility to paste values above on the sheet1.
    It should be some macro decision.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Macro for autocomplete

    There's an add-in at https://app.box.com/shared/ono8ni9xvr that will do that, a ReadMe at https://app.box.com/shared/4qxybepxxr, and an example workbook at https://app.box.com/shared/e8dbbple34
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Macro for autocomplete

    Or you could make it change automatically to the full name when you enter the short codes by adding them to the auto correct dictionary when opening the file and removing them on closing the file

    I think the below should do it, if you create a list of the things to auto correct in a sheet called autoC in column A an the things to correct to in column b. (starting from row 2 to allow for a header row)

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-01-2016
    Location
    Kyiv
    MS-Off Ver
    2016
    Posts
    10

    Re: Macro for autocomplete

    Quote Originally Posted by shg View Post
    There's an add-in at https://app.box.com/shared/ono8ni9xvr that will do that, a ReadMe at https://app.box.com/shared/4qxybepxxr, and an example workbook at https://app.box.com/shared/e8dbbple34
    Thank you. It's working.
    But I really need macro for this task.

  8. #8
    Registered User
    Join Date
    12-01-2016
    Location
    Kyiv
    MS-Off Ver
    2016
    Posts
    10

    Re: Macro for autocomplete

    Quote Originally Posted by scottiex View Post
    Or you could make it change automatically to the full name when you enter the short codes by adding them to the auto correct dictionary when opening the file and removing them on closing the file

    I think the below should do it, if you create a list of the things to auto correct in a sheet called autoC in column A an the things to correct to in column b. (starting from row 2 to allow for a header row)



    Please Login or Register  to view this content.
    I tried to do this but no actions in file.
    Would you please check the attachment?
    https://app.box.com/s/ngmdwt6fqo9q7y44nv0mb2qh30v3ufl3

  9. #9
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Macro for autocomplete

    Something like this.
    Keep in mind the limitations that it only corrects when you type the exact thing in the column A and while that sheet is open it will effect other sheets because we have changed the auto correct dictionary for excel.

    Otherwise if you prefer shg's solution you could bring that code into your own workbook.
    Attached Files Attached Files
    Last edited by scottiex; 12-02-2016 at 09:11 PM.

  10. #10
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Macro for autocomplete

    I had a little problem with workbook open not running it (maybe someone here can advise why). So here it is with some worksheet activate events and some buttons.

    You should also give moving shg's code over to a xlsm file a go as well. it doesn't have to be an add-in as it looks like he hasn't locked it down.
    Attached Files Attached Files
    Last edited by scottiex; 12-04-2016 at 03:57 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Autocomplete using API
    By IGEDIT in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-13-2013, 03:04 PM
  2. Macro to AutoComplete but skip blanks
    By CindyGreen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2010, 02:36 PM
  3. Replies: 1
    Last Post: 11-16-2008, 02:54 PM
  4. [SOLVED] AutoComplete Please!
    By Phippsy in forum Excel General
    Replies: 2
    Last Post: 03-20-2006, 01:15 PM
  5. Replies: 0
    Last Post: 01-04-2005, 09:35 PM

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