ycphs / openxlsx

openxlsx - a fast way to read and write complex xslx files
https://ycphs.github.io/openxlsx/
Other
220 stars 74 forks source link

add sheet without number #380

Closed Larbo53 closed 2 years ago

Larbo53 commented 2 years ago

Hello, I want to create sheets with the following code: "For i in range(0,len(customers)): workbook=Workbook() if i==0: sheet = workbook.active sheet.title = str(customers[i]) else: Num=str(i) sheetNum=workbook.create_sheet(title=str(customers)[i])" but I get an error back. How can I proceed because in my processing, I don't know the number of customers? Thanks for your feedback. Sincerely

JanMarvin commented 2 years ago

Sorry, but this does not look like R to me. Are you looking for openpyxl?