+ Reply to Thread
Results 1 to 5 of 5

Excel 2003 SP3 - Inserting Rows at every other rows

  1. #1
    Registered User
    Join Date
    05-20-2008
    Posts
    21

    Excel 2003 SP3 - Inserting Rows at every other rows

    Hi,

    I have an Excel spreasheet containing hundreds of line and I'd like to insert rows at every other rows.

    But when I select all my Rows and Insert Rows, I get the correct number of rows inserted but above the first row only! This is not what I am looking for...

    Any suggestion to insert a line at every single rows, to get 1 row with data, 1row with nothing (which I will need to select to minimize the height), then 1 row of data... and so on.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650
    Hi, Give this a try, it seems to work:-
    Please Login or Register  to view this content.
    Regards Mick

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    try
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-20-2008
    Posts
    21
    Hi,

    The first is quite good and simple to insert row, while the second one insert row but also copy the content of the first column into the inserted cells...

    How is it possible to improve slightly the first piece of code in order to resize each inserted row? For example, a line of code where you can set something like .resize = 2pt

    It suppose it must possible?

    Cheers!

  5. #5
    Registered User
    Join Date
    05-20-2008
    Posts
    21
    I found how to resize the rows in the code. I just included:

    Cells(oRow, 1).RowHeight = 2

    in the IF statment.

+ 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