+ Reply to Thread
Results 1 to 2 of 2

Create Multiple Dynamic Named Ranges with a Macro

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    1

    Create Multiple Dynamic Named Ranges with a Macro

    Howdy,

    I am stumped while trying to create multiple unique dynamic ranges on a report I am working on. I need a macro that will create a range for all the shipments that a certain sales name has.

    Here is an example for the first sales name. Which is currently called Sales_Shipments_1

    =OFFSET(Details!$B$1,Details!L3-1,0):OFFSET(Details!$B$1,Details!M3-1,0)

    I would just code all of these manually but Every time I update this report a new number of shipments and unique sales names will come up. Please see attachement for more details.



    Any help would be greatly appreciated.

    Best Regards
    Attached Files Attached Files
    Last edited by bennank; 12-18-2012 at 12:02 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Create Multiple Dynamic Named Ranges with a Macro

    Hi bennank

    The code in the attached will update a unique list of SALES_NAME every time it's run (see Module 2, Summary). It also fills the Table with desired output. Let me know of issues.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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