Results 1 to 6 of 6

Macro Loop and Paste in next empty row

Threaded View

Rayhoop Macro Loop and Paste in next... 05-14-2008, 11:06 AM
VBA Noob Rayhoop, Welcome to the... 05-14-2008, 11:14 AM
Rayhoop Right.. Ive been having a... 05-14-2008, 01:10 PM
VBA Noob Rayhoop, Not sure I follow... 05-14-2008, 01:19 PM
Rayhoop Cheers mate. I replaced... 05-14-2008, 02:09 PM
VBA Noob Still not clear what your... 05-14-2008, 02:36 PM
  1. #1
    Registered User
    Join Date
    05-14-2008
    Posts
    3

    Macro Loop and Paste in next empty row

    Hi All,
    I was hoping you could help, as Im new to macros etc...

    I recorded a macro, and I need it to loop AND to paste the next set of results in the next empty row...

    Im guessing this is pretty basic stuff, as Ive seen countless threads etc giving examples, but I just have not managed to get any to work :0s

    Could you help please?

    The macro recorded is...
    Sub reformat_data()
    '
    ' reformat_data Macro
    ' Keyboard Shortcut: Ctrl+p
    '
        Range("A2:G2").Select
        Selection.Copy
        Sheets("Sheet2").Select
        Range("C2").Select
        ActiveSheet.Paste
        Range("C5:J37").Select
        Application.CutCopyMode = False
        Selection.Copy
        Sheets("Sheet4").Select
        Range("A2").Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Range("A35").Select
    End Sub
    When it loops, I need it to move down to the next A*:G* range until it hits an empty 'range'. The data copied from range C5:J37 then needs to be pasted in Sheet4, but in the next empty row.


    Any ideas?


    PS - sorry about not formatting the post correctly (earlier)
    Last edited by Rayhoop; 05-14-2008 at 11:18 AM.

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