+ Reply to Thread
Results 1 to 2 of 2

Copy From LastRow to LastRow+7

  1. #1
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Leeds, England
    MS-Off Ver
    MS Office 2007
    Posts
    134

    Copy From LastRow to LastRow+7

    Hi All,

    I'm trying to add a line to this macro:

    Please Login or Register  to view this content.
    I cannot work out how to do the bit in red. Can anyone assist?

    Thanks
    dvent

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Copy From LastRow to LastRow+7

    Heads up... when working with Row variables use Long not Integer given row numbers exceed Integer boundaries (also in 32 Bit VBA Integers get converted to Longs under the hood anyway)

    If you want code that will work on all versions best to use Rows.Count than 65536 - this is because in XL2007 the available rows increased (1m+) and if you upgrade at a later date the use of 65536 is obviously open to error.

    Please Login or Register  to view this content.

    Or if you prefer to avoid Resize

    Please Login or Register  to view this content.
    Last edited by DonkeyOte; 02-11-2010 at 06:59 AM. Reason: modified to rows - typo

+ 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