+ Reply to Thread
Results 1 to 3 of 3

leaving 3 blank rows and pasting values repeatidly

  1. #1
    Forum Contributor
    Join Date
    06-17-2013
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    247

    leaving 3 blank rows and pasting values repeatidly

    Hey Guys!

    I have a range that is 13 rows high, that i want to paste at row 30 then next time i run the macro will leave 3 blank rows then paste again so at row 46, and continue down the spreadsheet as many times i run the macro leaving 3 blank rows between each pasting..

    How can i accomplish this?

    Or even if i simply paste hte first one on row 30 and then have the macro find the last blank row (43) and then go down 3 rows and paste that way it will be on a loop whenever i run the macro it will always be 3 down from last.. i can find last blank row just not sure how to +3 to row count each time.

    do i simply adjust the offset in this code, Sheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
    Last edited by 13lack13lade; 03-11-2014 at 08:03 PM.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: leaving 3 blank rows and pasting values repeatidly

    Hi,

    I would use Offset :
    Please Login or Register  to view this content.
    Let say you last pasted your data in row 30. The last row with data will be row 42. You need to find this last row and offset 4 rows to paste in row 46.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Forum Contributor
    Join Date
    06-17-2013
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    247

    Re: leaving 3 blank rows and pasting values repeatidly

    legend, thought that was the case however i wasnt sure exactly how to make hte offset +3.. now i can see exactly how it works!

    very much appreciated!

+ 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. Auto fill worksheet cells based on certain criteria w/out leaving blank rows.
    By Txprospector in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-10-2014, 07:35 AM
  2. Return Numbers leaving 'n' rows blank
    By mohd_arastu in forum Excel General
    Replies: 6
    Last Post: 04-10-2012, 08:36 AM
  3. Replies: 1
    Last Post: 08-29-2010, 10:44 PM
  4. [SOLVED] Pivot Tables - Leaving out blank rows
    By Lewis Clark in forum Excel General
    Replies: 4
    Last Post: 06-26-2006, 12:10 PM
  5. combine speadsheets leaving no blank rows on master page
    By Combining spreadsheets in Excel in forum Excel General
    Replies: 3
    Last Post: 10-24-2005, 01:05 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