Viewing 3 posts - 1 through 3 (of 3 total)
  • Excel help.
  • mrmo
    Free Member

    Query is this.

    I have a number of cells that may or may not have content.
    I have a second worksheet where i need to insert lines based on the number of cells with contents mentioned above.

    Range(“”).cells.count gives me the total number of cells in the range, which is almost what i want.

    rows.insert does the second part

    Is there a way of saying usedrange(“”).cells.count, that works?

    I could use brute force and simply do a if null else approach as it is only 25 cells, but doesn’t strike me as very neat and i would hope that a better method exists.

    WackoAK
    Free Member

    CountA() is what you are after I think

    mrmo
    Free Member

    Thanks, works perfectly.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Excel help.’ is closed to new replies.