简体   繁体   中英

Vb.Net Excel filter

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM