+ Reply to Thread
Results 1 to 6 of 6

Excel Macro: Last Row Failed to Capture

  1. #1
    Registered User
    Join Date
    03-01-2017
    Location
    Manila, Philippines
    MS-Off Ver
    MS Office 2007
    Posts
    77

    Excel Macro: Last Row Failed to Capture

    Hi Excel Gurus,

    I have a report in a workbook that contains multiple worksheets and I want these data be copied on a "Summary" sheet. However, the last row of the data of each worksheets did not captured when I tried running the macro I have.

    I appreciate if there could be someone that could help me check and correct the missing code per attached sample workbook. Let me know if you need additional details or clarifications. Thank you!


    Warmest regards,
    Arnel
    Attached Files Attached Files

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Excel Macro: Last Row Failed to Capture

    As I understand correctly.

    Please Login or Register  to view this content.
    Last edited by bakerman2; 09-15-2017 at 01:02 AM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    03-01-2017
    Location
    Manila, Philippines
    MS-Off Ver
    MS Office 2007
    Posts
    77

    Re: Excel Macro: Last Row Failed to Capture

    Hi bakerman2,

    Thanks for taking time answering my query.

    I tried incorporating the codes that you've provided but it looks like it did not hit the target data I wanted.

    On the attached workbook, I have highlighted (in yellow) the data in each worksheets after the "Summary" sheet that I want to be consolidated after clicking the "Generate" button.

    I appreciate if you could please revisit the existing VBA code that I have and correct what's the missing pieces. Thank you so much!

    Warmest regards,
    Arnel
    Attached Files Attached Files

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Excel Macro: Last Row Failed to Capture

    You just need to replace this
    Please Login or Register  to view this content.
    with the code I gave you in my previous post.

  5. #5
    Registered User
    Join Date
    03-01-2017
    Location
    Manila, Philippines
    MS-Off Ver
    MS Office 2007
    Posts
    77

    Re: Excel Macro: Last Row Failed to Capture

    Hi bakerman2,

    It works perfect!

    Thank you for your immediate feedback and for sharing your expertise. Much appreciated!

    Warmest regards,
    Arnel

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Excel Macro: Last Row Failed to Capture

    you're welcome and thanks for rep+.

+ 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. Passed or Failed, I Failed at excel.
    By jschavo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2016, 09:42 PM
  2. Excel Macro to capture pdf page #
    By vel90 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2016, 09:22 AM
  3. Need help for macro which capture mainframe data to excel sheet
    By satishkumar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2013, 11:05 AM
  4. [SOLVED] Macro to capture data from multiple excel files into another master workbook
    By Amaresh Babu K S in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-06-2012, 03:26 AM
  5. Capture values from macro to a excel file
    By var in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2012, 06:39 PM
  6. Replies: 7
    Last Post: 08-24-2005, 11:05 AM
  7. [SOLVED] How to capture user ID in Excel macro?
    By Ivan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2005, 05:19 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