How do I delete a row in Excel?
wb = xw.Book('Shipment.xlsx')
wb.sheets['Page1_1'].range('1:1').clear()
.clear() works to remove the content. I want to delete the row. I'm surprise the .clear() function works, but not .delete()
Any advice helps! Thank you
It is now possible to delete without using api property:
wb.sheets['Page1_1'].range('1:1').delete()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With