Hi All-
I wrote a piece of vba, but need a little help finishing it. Basically, its suppose filter by non blank rows on last column and copy to a separate sheet. But I am having problem with line ActiveSheet.Range("13:65536").AutoFilter Field:=19, Criteria1:="<>". Is there anyway I can make the field universal? Its Filed:=19 that is causing the problem.
Thanks.
Worksheets.Add(After:=Worksheets(Worksheets.Count)).Name = "Break Sheet"
Set ws1 = Worksheets("Break Sheet")
Set ws2 = Worksheets("RCN_RECON")
Worksheets("RCN_RECON").Select
Cells(13, Columns.Count).End(xlToLeft).Select
ActiveSheet.Range("13:65536").AutoFilter Field:=19, Criteria1:="<>"
ws2.UsedRange.Copy Destination:=ws1.Range("A1")
I wrote a piece of vba, but need a little help finishing it. Basically, its suppose filter by non blank rows on last column and copy to a separate sheet. But I am having problem with line ActiveSheet.Range("13:65536").AutoFilter Field:=19, Criteria1:="<>". Is there anyway I can make the field universal? Its Filed:=19 that is causing the problem.
Thanks.
Worksheets.Add(After:=Worksheets(Worksheets.Count)).Name = "Break Sheet"
Set ws1 = Worksheets("Break Sheet")
Set ws2 = Worksheets("RCN_RECON")
Worksheets("RCN_RECON").Select
Cells(13, Columns.Count).End(xlToLeft).Select
ActiveSheet.Range("13:65536").AutoFilter Field:=19, Criteria1:="<>"
ws2.UsedRange.Copy Destination:=ws1.Range("A1")