+ Reply to Thread
Results 1 to 2 of 2

VBA Macro to consolidate data within same spreadsheet

  1. #1
    Registered User
    Join Date
    12-10-2013
    Location
    Lancaster, England
    MS-Off Ver
    Excel 2013
    Posts
    3

    VBA Macro to consolidate data within same spreadsheet

    Hello,

    I am having an issue in getting a little macro I wrote.
    The spreadsheet originally contains 60 sheets, but I added 2 more, namely "Model" and "Database".

    I need to copy data from each of the 60 original sheets into Database. All sheets are formatted exactly in the same way (number or columns / rows), but unluckily those include headers which I need to get rid of (I cannot delete rows once I imported all data as the "Database" worksheet will be formatted with xyz formula; for the same reason Ranges must be tailored to each individual sheet).

    There is a sheet which has header + 1 single row, hence I cannot use Range("A2").End(xlDown) etc as it won't work.
    My biggest issues seems to be that my macro won't work if any cell in the given range is selected prior to the macro.

    Please Login or Register  to view this content.
    Any help would be greatly appreciated!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA Macro to consolidate data within same spreadsheet

    I'm not sure I follow your description, but try this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. need macro to consolidate data from .xml files.
    By sekharyadav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-27-2012, 11:03 AM
  2. Macro to consolidate data from two colums
    By Kristengeyer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2011, 08:43 PM
  3. Consolidate data to one spreadsheet
    By kt090678 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-14-2011, 11:43 AM
  4. Macro to consolidate data from many files
    By annasox in forum Excel General
    Replies: 5
    Last Post: 01-17-2011, 12:32 PM
  5. Macro to consolidate data from various worksheets into one
    By Archana in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-31-2007, 08:10 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