Results 1 to 7 of 7

Copying and Inserting Range of Rows After Last One Inserted

Threaded View

  1. #1
    Registered User
    Join Date
    07-03-2013
    Location
    Missoula
    MS-Off Ver
    Excel 2010
    Posts
    3

    Post Copying and Inserting Range of Rows After Last One Inserted

    Hello. I'm in desperate need of some VBA help. I'm trying to copy a range of rows from above, clear the contents and insert the copied rows below. It works the first time, but then always inserts the new rows above all of the old ones. How do I get the rows being copied to be inserted at the end of the of the last range of rows copied? I also need to do this for columns. Below is code that I recorded. Please help.

    Sub inserttest()
    ' inserttest Macro
        Rows("6:25").Select
        Selection.Copy
        Rows("26:26").Select
        Selection.Insert Shift:=xlDown
        ActiveWindow.SmallScroll Down:=15
        Range("C27:D27,C29,C31,C33,C35:H45,F31,F33").Select
        Range("F33").Activate
        Application.CutCopyMode = False
        Selection.ClearContents
    End Sub
    Last edited by swoosiebur; 07-05-2013 at 10:24 PM. Reason: As per Forum Rule #3, please use code tags…Thanks.

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