+ Reply to Thread
Results 1 to 3 of 3

Auto fill to last row (number of rows will vary) - SOLVED

  1. #1
    Registered User
    Join Date
    05-17-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Auto fill to last row (number of rows will vary) - SOLVED

    Hi all I've been using a macro to figure out the age (in days) of product on our shelves using excel.
    I get a daily report on the items with the date they were booked in.
    I have a macro set up where by it inserts a new column and subtracts the the cell in the corresponding row from today().
    I currently have this set up to run all the way down to the 1000th row but would like to clean it up so that it runs to the end of the report based on the first column in the report.

    My current macro:
    Please Login or Register  to view this content.

    I have tried this solution based on one I found on here and replacing the last 5 lines in the above but it is returning a 1004 runtime error
    Please Login or Register  to view this content.
    Any ideas what I'm doing wrong?

    Thanks
    Last edited by artacus; 05-17-2013 at 11:16 AM. Reason: Non issue

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Auto fill to last row (number of rows will vary)

    Works fine for me (code below) - can you upload the workbook as it is giving you an error?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-17-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Auto fill to last row (number of rows will vary)

    It looks like I just needed some food.
    Went for lunch, came back and and found I left in one of the lines I intended to delete.

+ 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