+ Reply to Thread
Results 1 to 2 of 2

Macro to shiftevery row in a worksheet below one row

  1. #1
    Registered User
    Join Date
    05-26-2011
    Location
    chennai,india
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question Macro to shiftevery row in a worksheet below one row

    Hi All,


    I have an workshet wherein there are several hundreds of rows with certain values . I need a macor to shift all the rows below one row and modify the first row with my new data. I dont want to insert a new row at the top since it modifies my graphs and charts.

    Eg :

    Row 1 : A B C D E
    Row 2 : 1 2 3 4 5
    Row 3 : S T U V W
    Row 4 : 5 6 7 8 9

    After i execute the macro it shoudl be

    Row 1 : A B C D E
    Row 2 : A B C D E
    Row 3 : 1 2 3 4 5
    Row 4 : S T U V W
    Row 5 : 5 6 7 8 9

    I know it can be easily achieved through insert new row. But i dont want to insert but just modify the data by copy paste entire row to new one

    Please help me to acheve it through a macro.

    Thanks
    Vasanth

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to shiftevery row in a worksheet below one row

    So, copy the entire used range of data, and paste down one row?

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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