+ Reply to Thread
Results 1 to 3 of 3

Last Row not being identified correctly

  1. #1
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Last Row not being identified correctly

    The following macro works great if I run it the way it is intended to be run which is workbook "XXX XXXX Master Workbook.xlsm" contains this macro and a sheet called "Dump"

    Every Monday i get a spreadsheet called ABC.

    I run this macro and it presents me with the data that I can work with.

    I cannot combine multiple weeks of data on one Dump sheet because this macro keeps referencing and in turn overwriting the existing data.

    I tries to create a new last row code to replace the specific start point of F2 but I think it is great than that.

    Hopefully someone can provide me with the correct lines of code without requiring a sample since this code references at least one other workbook that I wouldn't be able to post, at least publicly.

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: Last Row not being identified correctly

    You probably need to indicate the sheet to calculate LR1
    Please Login or Register  to view this content.
    ..or it figures you are looking for the last row of the sheet you are running the code from

  3. #3
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Re: Last Row not being identified correctly

    Dave,

    Thanks for the reply.

    I believe I made an error in my first post by only identifying one Last Row which is why this still is not doing what I need it to do. I made some notes within the code below.


    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)

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