+ Reply to Thread
Results 1 to 2 of 2

Create named source range

  1. #1
    Registered User
    Join Date
    12-16-2014
    Location
    milano
    MS-Off Ver
    2010
    Posts
    1

    Create named source range

    Dear all,

    I'm a new member and I would like to create e macro with merge several data from different workbooks contained in a specific path.
    I created the macro but I noted that different workbooks are not the same. Thus, the columns named "total amount" and "currency" are not present in the same position. Therefore my source range cannot be AD:AI but is should find my colums in different workbooks and then copy the entire columns in another new workbook which summarize all files contained in the path defined.
    Could you please help me?

    Currently I setted the following information:

    Please Login or Register  to view this content.
    As you can note my files are xlm and not xls.

    I thank you very much in advance.
    Last edited by Fotis1991; 12-16-2014 at 06:55 AM. Reason: pls use code tags around your codes

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,594

    Re: Create named source range

    Use Range.Find to return the position of the two headers, then modify:
    SourceRng:="AI:AO", accordingly.
    Ben Van Johnson

+ 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. [SOLVED] Using dynamic named range as row source for combo box
    By Nitefox in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 12-20-2013, 09:58 PM
  2. Replies: 2
    Last Post: 08-03-2013, 05:33 AM
  3. [SOLVED] Assigning named Range as Pivot Table Source Data using Macro
    By Melovalicious in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2012, 05:50 AM
  4. Using INDIRECT to put a Dynamic Named Range in a chart Data Source
    By mgaworecki in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-01-2012, 07:35 AM
  5. Using NAmed Range as a Series Source
    By ElmerS in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-11-2010, 08:18 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