Page 2 of 2 FirstFirst 1 2
Results 21 to 24 of 24

Thread: Insert blank row for each full row

  1. #21
    VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    If I understand your question, The screen updating feature works no matter how many rows you have or what you select. It is independent of any code.
    Peace of mind is found in some of the strangest places.

  2. #22
    VBAX Contributor samohtwerdna's Avatar
    Joined
    Dec 2004
    Location
    Denver Colorado
    Posts
    143
    Location
    YEAH I think?

    You know when you select the entire sheet by clicking on the top left hand corner of the sheet and then say format the row height - the change is very, very fast - no matter how large the sheet, that's what I am talking about.

    is there a way to format every other row just as fast?

    I am sure I have to use VBA - but perhaps I dont have to loop through each row?
    To live is Christ... To code is cool!

  3. #23
    VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    There are several ways to do just about everything, but in this case Norie's solution is the best and fastest way to go, IMHO. However, others may have something else to say.
    Peace of mind is found in some of the strangest places.

  4. #24
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Try using SpecialCells, xlCellTypeBlanks possibly. Maybe something like this ...

    [vba]Option Explicit

    Sub DeleteBlankRowsPlz()
    Dim Rng As Range
    Set Rng = Selection 'set as desired
    On Error Resume Next
    Rng.SpecialCells(xlCellTypeBlanks).EntireRow.Delete
    End Sub[/vba]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •