Method
#xlwings
sht.used_range.select()
#xlwings API
#sht.api.UsedRange.Select()
Sample Code
#Reference the used range of a worksheet
import xlwings as xw #Import the xlwings package
app=xw.App()
bk=app.books.open('current.xlsx') #Get the active workbook
sht=bk.sheets.active #Get the active worksheet
#xlwings
sht.used_range.select()
#xlwings API
#sht.api.UsedRange.Select()
#bk.close()
#app.kill()

Leave a Reply