+ Reply to Thread
Results 1 to 4 of 4

Update automatically name range once file is import

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Update automatically name range once file is import

    Hi All.

    Is there a way where I can expand the name range automatically without the user have to set or adjust it manually?


    Here is the logic, I have two files, FTE task list macro and task list file,each employee in a company has his own FTE tracker, the team lead will somehow update task list file and inform all employee that the updated task list is available in shared folder and they need to update their task list on their tracker, as you notice that the "Dept1" on FTE file is between range A3 to A107, on the task list that is updated it is range between a3 to 110. Now I have already set up a macro code where the user click the button and choose the task list file to copy it back to the fte tracker, the thing is on FTE tab, I used a drop down value to capture the range of Dept1,but since the range is not yet updated,not all in the list has been captured.

    For elaborate example, you can download the 2 files and run the FTE macro file. I hope I explained well my problem. You can ask me if you still confused with my problem

    PS: I have actual data for privacy purposes so I create a file that set as an example to my problem*supposed to be that there should be many dept). Task list tab supposed to be very hidden to the user before and after updates, I just set is visible for you to see the logic.
    Attached Files Attached Files
    Last edited by emina002; 03-30-2015 at 03:33 PM.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Update automatically name range once file is import

    put the following formula in your data validation source section.
    =OFFSET(INDIRECT("'Task list'!a"&MATCH($B$1;'Task list'!$B:$B;0));0;0;COUNTIF('Task list'!$B:$B;$B$1);1)
    It still uses the cell B1 as the department selection.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Update automatically name range once file is import

    Hi,

    Without reading your whole question or looking at your attachments, this sounds like a job for Dynamic Named Ranges. Read:
    http://www.bettersolutions.com/excel...G820716330.htm
    http://tim.webanalyticsdemystified.com/?p=820
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: Update automatically name range once file is import

    Thank you for answering my question,@p24leclerc your formula works well and I will keep the links you gave MarvinP. Thank you

+ 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. Want macro to import same file name automatically
    By DKAbi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-15-2012, 07:34 PM
  2. Import and organize csv file automatically
    By albertino in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-13-2011, 08:36 PM
  3. automatically import a file
    By boomshank in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2009, 09:43 AM
  4. can I automatically import .csv file?
    By jaspittman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-11-2008, 02:09 PM
  5. How import data from a closed file with an update button
    By efmelp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2007, 10:20 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