简体   繁体   中英

How can I delete lines of a big .xlsx file using java

I have a 1 million line .xlsx file , the data is a sensor monitoring data . Now I want to use poi traversing row while deleting some unwanted rows of data, how can I do ? Can SXSSF work ? Who can provide me the example codes.thanks.

This will promt you for a line number... and then delete it

 Sub Makro1()
    '
    ' Makro1 Makro
    '
    myValue = InputBox("Give me some input")
        Rows(myValue).Select
        Selection.Delete Shift:=xlUp
    End Sub

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