Consulting

Results 1 to 2 of 2

Thread: Delete empty rows

  1. #1
    Banned VBAX Regular
    Joined
    Feb 2009
    Posts
    51
    Location

    Lightbulb Delete empty rows

    If in Row(n),
    Every Col(n) = "",
    Then Delete Row(n)

    I need help to convert aforesaid algorithm into VBA.

  2. #2
    VBAX Regular
    Joined
    Aug 2011
    Posts
    11
    Location
    Try:

    [VBA]
    If WorksheetFunction.CountA(Rows(n)) = 0 Then

    Rows(n).EntireRow.Delete

    Else: End If
    [/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
  •