+ Reply to Thread
Results 1 to 3 of 3

[excel 365] autocomplete drop down that runs runs additional code based on value

  1. #1
    Registered User
    Join Date
    11-15-2018
    Location
    Alberta, Canada
    MS-Off Ver
    365
    Posts
    6

    [excel 365] autocomplete drop down that runs runs additional code based on value

    Hello,

    So i am trying to make a part list that you can use a drop down with the part number, or the description. that will auto fill the other side with the correct matching thing. I have that part of my code working good. This is that code.

    Please Login or Register  to view this content.
    Then I wanted to add a autocomplete thing. so if someone starts typing it will help the user find the right part. I found this on another website and thought maybe I could have both sub's in the working, it works on selection change, mine works on value change. Although they have a double click version i haven't tried. Below is the code.

    www-contextures-com-xlDataVal14-html (website that i can't link because im new here. but i think it is important for my reference)

    Please Login or Register  to view this content.
    When I use the auto complete however, my value change code doesn't fire. Is there a better way?

    Thanks

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: [excel 365] autocomplete drop down that runs runs additional code based on value

    This part of code...
    Please Login or Register  to view this content.
    Dictates behaviour based on what key you press (tab/enter). What you could do is move your Worksheet_Change code to standard module, and add arguments/parameters to pass from selection change code. Then call it in above section.

    Alternately, you can use other set up (such as searchable dropdown using Cell() function and iterative calculation etc) etc.

    If you need further help, I'd recommend uploading sample workbook.

    To upload, use "Go Advanced" button, follow "Manage Attachments" hyperlink. It will launch new tab/window for managing uploads.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    11-15-2018
    Location
    Alberta, Canada
    MS-Off Ver
    365
    Posts
    6

    Re: [excel 365] autocomplete drop down that runs runs additional code based on value

    i'll upload my sample

    I think this other method might be a better way.

    www-contextures-com-xlDataVal11-html
    Attached Files Attached Files
    Last edited by Corpo; 10-08-2019 at 11:51 AM.

+ 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. Excel Destroys my Workbook Every Time it Contains (Not Runs) This Code
    By Michael.T in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2019, 09:43 PM
  2. [SOLVED] Ensuring that VBA code runs on records in a targeted Excel Worksheet
    By patdools in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2019, 05:08 PM
  3. [SOLVED] Calculating winning/drawing/losing runs & goal scoring runs
    By gko_87 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-25-2017, 06:47 AM
  4. [SOLVED] Macro runs quick initially then bogs down after a few runs
    By pongmeister in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2017, 02:02 PM
  5. VBA runs slow locally, runs fine when connected remotely
    By jbzy324 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2015, 10:05 PM
  6. Excel crashes when code runs, Please help.
    By Potoroo in forum Excel General
    Replies: 2
    Last Post: 09-12-2006, 08:39 PM
  7. Excel - keep a command button from moving after code runs?
    By Dave Little in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2005, 10:05 AM

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