+ Reply to Thread
Results 1 to 7 of 7

macro - consolidate data from various sheets to summary without deleting the summary tab

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    48

    macro - consolidate data from various sheets to summary without deleting the summary tab

    Please Login or Register  to view this content.
    Need help with this code. I need this code to only delete content of summary sheet (ConsolidatedData), then copy data from other sheets and paste it here. Reason I cant delete then and add new summary sheet is because I have links in other files to this ConsolidatedData.

    Please help. 'Im searching for this the whole week.

  2. #2
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: macro - consolidate data from various sheets to summary without deleting the summary t

    Hi noorie007,

    Add this code where you have written 'Delete Content of the summary sheet.

    Please Login or Register  to view this content.
    Note:
    1) Please rename Sheet1, Where Sheet1 will be your summary sheet.
    2) Also alter the range to be selected as per your requiement.

    Hope this code helps you.


    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  3. #3
    Registered User
    Join Date
    07-11-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: macro - consolidate data from various sheets to summary without deleting the summary t

    Thank you Paresh,
    When I do that the line that pastes value gets bugged!

  4. #4
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: macro - consolidate data from various sheets to summary without deleting the summary t

    Hi,

    After this code CopyRng.Copy,

    Always activate the workbook before doing copy paste operations, Hence activate the workbook which contains ConsolidatedData worksheet.

    ActiveWorkBook.Activate

  5. #5
    Registered User
    Join Date
    07-11-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: macro - consolidate data from various sheets to summary without deleting the summary t

    Can I somehow refrain the macro from changing the name of the new sheet? For example, when i run the macro although its calling it "ConsolidatedData" the sheet number keeps changing evertime i run the macro... Sheet23, Sheet24 etc etc

  6. #6
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: macro - consolidate data from various sheets to summary without deleting the summary t

    Hi noorie007,

    Whether this is causing any issues while running the macro? I think it is not coz you are using names instead of indexs to call sheet.

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: macro - consolidate data from various sheets to summary without deleting the summary t

    Please Login or Register  to view this content.

+ 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. Macro to PRIORITISE and CONSOLIDATE data across different sheets into summary sheet
    By JamesGoulding85 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-31-2013, 07:49 AM
  2. Replies: 20
    Last Post: 06-20-2013, 09:04 AM
  3. Replies: 20
    Last Post: 10-19-2012, 04:35 PM
  4. Consolidate Divisional Sheets to Corporate Summary
    By jaslake in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-20-2009, 03:29 AM
  5. Consolidate data from rows in many sheets to summary sheet?
    By Dynelor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-08-2008, 07: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