+ Reply to Thread
Results 1 to 2 of 2

Create Named Range Based On Filtered List/ Criteria dependent on User Login

  1. #1
    Registered User
    Join Date
    02-16-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    52

    Cool Create Named Range Based On Filtered List/ Criteria dependent on User Login

    Hi. I need help on a vba code for my work project, see attached sheet. What I basically needs assistance is creating a macro that:

    1.) based on user (I've already created a userform) is to filter sheet "MASTER" based on criteria (user and corresponding dept).
    user dept
    JOEL ----> all (no filter)
    CHING ----> OSAA "AND" PROPER
    PAU ----> LEGISLATION
    BERNS ----> EAR


    2.) filter Sheet ("MASTER") based on #1 until lastrow

    Column B Column I
    EMPNAME OFFICE
    REMIGIO, JACOB A. ----> LEGISLATION
    MALINAB, CONCHU D. ----> ADMIN
    BARANDA, MARY A. ----> OSAA
    HAGURING, LORENA G. ----> OSEC
    BALAGNE, MAY H. ----> PROPER
    LABERINTO, ELMER C. ----> EAR
    LARGOZA, AILEEN G. ----> LEGISLATION

    2) Paste the result into another worksheet ("EmpNames") and sort it

    3.) Create named range ("MyList) which I refer to on my combo box userform.


    What I initially thought of is store the criteria on worksheet change event which then triggers the macro to filter, paste, sort and create the named range. Any help would be greatly appreciated. Thanks in advance for the assistance!
    Attached Files Attached Files
    Last edited by jhoelski; 03-29-2018 at 06:24 AM.

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Create Named Range Based On Filtered List/ Criteria dependent on User Login

    No userform in your file

    Kind regards
    Leo

+ 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. Is it possible to create a named range who works with filtered data
    By HaroonSid in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-04-2017, 07:49 AM
  2. Data validation filtered list based on a criteria
    By fredotom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2015, 11:01 AM
  3. Dependent, Dynamic Named Range with Multiple Criteria
    By JustinCredibLee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2014, 12:46 PM
  4. [SOLVED] Can't use Numbers in named range list for Dependent data validation lists
    By Sam Kuiper in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-11-2012, 08:26 PM
  5. Create Named List (range) based on check list
    By Hammer_757 in forum Excel General
    Replies: 4
    Last Post: 11-16-2011, 04:27 PM
  6. Insert user's name into cell based on windows user login when a button is clicked.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-16-2011, 01:08 PM
  7. Dependent Drop Down List Based on User Input
    By x12179x in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2009, 04:16 AM

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