+ Reply to Thread
Results 1 to 3 of 3

Need Help De-Bugging Consolidation Macro

  1. #1
    Registered User
    Join Date
    07-18-2018
    Location
    New York
    MS-Off Ver
    2016
    Posts
    1

    Need Help De-Bugging Consolidation Macro

    Hi Everyone,

    I'm trying to create a macro that will help me consolidate information from various tabs, stack them into a new one, and skip the headers starting from the second tab onward (i.e. copy the headers on the first tab and then start from the second line down from the others so that the headers aren't duplicated). The main trouble I'm running into is that I can't figure out a way for excel to go to the last blank row of my "Consolidated Data" tab, and start pasting values from there. I got close, but I keep pasting over prior data, which I can't have happen. I've now tried introducing new variables and now am getting a compilation error.

    Since I have no experience with VBA, I'm not even sure how to debug this. If anyone can help me fix my code, I'd greatly appreciate it.

    Thanks!

    Please Login or Register  to view this content.
    Last edited by vba_cpa; 07-18-2018 at 06:19 PM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Need Help De-Bugging Consolidation Macro

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Need Help De-Bugging Consolidation Macro

    Hello vba_cpa,

    If you're looking at consolidating the entire data set from each source sheet to a Master sheet then the following simplified approach may work for you:-

    Please Login or Register  to view this content.
    It assumes that you have headings in row1 of the Master sheet (Sheet1).
    The code also clears the Master sheet prior to any new transfers of data.

    Test the code in a copy of your actual workbook first.


    I hope that this helps.

    Cheerio,
    vcoolio.
    Last edited by vcoolio; 07-19-2018 at 12:15 AM. Reason: Additional info.

+ 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] Consolidation several tabs' data into a consolidation sheet via a loop?
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-30-2015, 08:18 AM
  2. A query that's bugging me
    By Mattneedshelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2012, 06:09 AM
  3. [SOLVED] The mark is bugging me! LOL
    By Wayne Knazek in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2006, 02:10 PM
  4. 2 Excel Problems that have been bugging me!
    By ithebatman in forum Excel General
    Replies: 2
    Last Post: 04-30-2006, 07:10 PM
  5. [SOLVED] This is really bugging me now!
    By Steve in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-29-2005, 01:05 PM
  6. Replies: 2
    Last Post: 07-11-2005, 04:05 PM
  7. Debug Error bugging me!!
    By TPD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-26-2005, 03:34 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