On May 31, 6:27*pm, joel <joel.4bu...@thecodecage.com> wrote:
> try this
>
> Sub Macro1()
> '
> With Sheets("sheet1")
> LastRow = .Range("C" & Rows.Count).End(xlUp).Row
> 'use autofile to get blank items
> .Columns("C:C").AutoFilter
> .Columns("C:C").AutoFilter Field:=1, Criteria1:="="
>
> 'use special cells method to get visible rows, ones with blanks
> Set VisibleRows = .Rows("1:" & LastRow) _
> .SpecialCells(xlCellTypeVisible)
> VisibleRows.Delete
> 'remove autofilter
> .Cells.AutoFilter
> End With
> End Sub
>
> --
> joel
> ------------------------------------------------------------------------
> joel's Profile:http://www.thecodecage.com/forumz/member.php?u=229
> View this thread:http://www.thecodecage.com/forumz/sh...d.php?t=206269
>
> http://www.thecodecage.com/forumz
Hi Joel,
it is working as desired. Thank you very much for your great help. I
had to delete the 'Option Explicit' statement in order not to get
constant error messages, that a variable has not been defined. What do
I have to do if I leave the 'Option Explicit' statement on its place.
Regards, Andreas