+ Reply to Thread
Results 1 to 8 of 8

Different approach to create uniques data validation list from table inputted data columns

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Different approach to create uniques data validation list from table inputted data columns

    Hi Guys,

    i wrote macro which is checking if something new was added/removed/updated to table column and refreshing pivot table in separate tab in order to get unique value.
    But it is a lot of code and i do not know - maybe there is another solution which i can use and will be easier and faster?

    Can anybody had similar issue?

    Please Login or Register  to view this content.
    Screenshot_21.png

    Code is:
    1. checking if something was added/deleted/updated in table
    2. if yes looping through table header and checking the match
    3. If it is a match - refresh pivot table in hidden worksheet.
    4. As result i have a list of uniques from specific column

    In attachment example workbook.

    All sugesstion are welcome.

    Best Wishes,
    Jacek

  2. #2
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Bistrita, Romania
    MS-Off Ver
    2019; 365
    Posts
    231

    Re: Different approach to create uniques data validation list from table inputted data col

    No attachment posted

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Different approach to create uniques data validation list from table inputted data col

    Thanks.

    Jacek
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Different approach to create uniques data validation list from table inputted data col

    Hi,

    what do yu think Guys? It is a chance to do this better/faster?

    Best,
    Jacek

  5. #5
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Bistrita, Romania
    MS-Off Ver
    2019; 365
    Posts
    231

    Re: Different approach to create uniques data validation list from table inputted data col

    Will you have multiple pivot tables containing names existing in a table? I notice that the pivot table name comes from the table in Hidden DV sheet.
    Is that needed? Because there is a simple code to refresh the pivot using Vn_Input_Tier_Storage table as source.

    I mean you can easily refresh a pivot table in a couple of lines of code.

  6. #6
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Different approach to create uniques data validation list from table inputted data col

    Hi Mrrr,

    thank you very much.
    How you will know that you added to table column which should update connected pivot table?

    I am checking:

    Please Login or Register  to view this content.
    here if specific column exists in table. If yes - refresh pivot table.
    But yes, maybe i could add statement which will refresh pivot table immediately after checking if column exists in dictionary.
    It would avoid one additional loop in the end! Thanks!

    Hmm i think that it can be done in better way...

    Best,
    Jacek

  7. #7
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Bistrita, Romania
    MS-Off Ver
    2019; 365
    Posts
    231

    Re: Different approach to create uniques data validation list from table inputted data col

    In that file will you have pivot tables that are not named from that table?
    Or all the pivot tables existing in the document will have a title in there?

    Because you could just make a code to refresh all pivots, without checking anything. Just loop through every pivot table and refresh + update it.

    Something like:
    Please Login or Register  to view this content.
    To show your appreciation
    Click ★ Add reputation!

  8. #8
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Different approach to create uniques data validation list from table inputted data col

    Thanks!

    Yes but refreshin all pivot is slower than refreshing only choosen ones

    Jacek

+ 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. Replies: 1
    Last Post: 01-14-2018, 11:04 AM
  2. Replies: 2
    Last Post: 06-16-2016, 10:59 AM
  3. [SOLVED] How to use validation in excel to ensure the data inputted is workday
    By wowow in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-16-2015, 12:33 AM
  4. Create a data validation list takes data from another sheet
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-02-2015, 05:54 AM
  5. [SOLVED] Data validation - works manually, but macro allows anything to be inputted. How to preven
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-30-2014, 05:30 PM
  6. Replies: 5
    Last Post: 09-26-2013, 11:45 AM
  7. [SOLVED] Data validation option - More customised approach
    By Devi S in forum Excel General
    Replies: 4
    Last Post: 06-03-2012, 01:16 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