Reputation: 11
Need a vb.net code to filter excel.
Example filter column 2 by criteria: Apple. All results for apple will now appear within the spreadsheet.
Any help is greatly appreciated.
Thanks
Upvotes: 0
Views: 2074
Reputation: 771
you can convert following example in your code
'for filter column no 4 for null rows then delete null rows as following
With drywtmonthly.Sheets("input").Range("a1:u1")
.AutoFilter Field:=4, Criteria1:=""
Sheet1.Range("a2:u600").Delete
.AutoFilter Field:=4
End With
i hope it useful
Upvotes: 1