+ Reply to Thread
Results 1 to 3 of 3

Paste Special Values To First Blank Row

  1. #1
    Registered User
    Join Date
    07-28-2012
    Location
    New Castle, De, USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Paste Special Values To First Blank Row

    I am trying to paste special values+to the first blank row starting in one cell and ending in the last cell, from one sheet to another sheet. I have most of the code but the "offset line" seems to be giving me alerts" as missing range. Can anyone help with what might be missing? I have attached the file.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    George

  2. #2
    Valued Forum Contributor
    Join Date
    12-05-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    308

    Re: Paste Special Values To First Blank Row

    Hi George

    If I've understood your correctly, the following should work:
    Please Login or Register  to view this content.
    The Offset line should have been xlDown to take you to the last row of existing data. Then, Offset(1,0) to offset that row by one (i.e. get to the first blank).

    btw. If B4 is blank (i.e. you have no existing data) you will get an error as xlDown will take you to the last row on the worksheet and you will then try and offet(1,0) to a row that doesn't exist. You could include an If statement so that if B4 is blank it doesn't do the Offset, it just pastes there.

    Best regards, Rob.

  3. #3
    Registered User
    Join Date
    07-28-2012
    Location
    New Castle, De, USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Paste Special Values To First Blank Row

    This works, I just have to have something in the first 5 rows...Thanks for your help and quick response to this.
    Last edited by Cutter; 08-03-2012 at 10:29 AM. Reason: Removed whole post quote

+ 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