Renaming sheet name

1,739 views
Skip to first unread message

war.d...@gmail.com

unread,
Dec 13, 2015, 2:35:56 AM12/13/15
to openpyxl-users
Hello,

I can't seem to find anything about it. Is it possible to rename sheets? I have a template document that I would like to use rather than build the entire worksheet by openpyxl.

Thank you and happy holidays

Charlie Clark

unread,
Dec 13, 2015, 4:12:37 AM12/13/15
to openpyx...@googlegroups.com
Am .12.2015, 08:35 Uhr, schrieb <war.d...@gmail.com>:

> I can't seem to find anything about it. Is it possible to rename sheets?
> I
> have a template document that I would like to use rather than build the
> entire worksheet by openpyxl.

Simply set the title for the relevant sheets.

Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Kronenstr. 27a
Düsseldorf
D- 40217
Tel: +49-211-600-3657
Mobile: +49-178-782-6226

Ran Schin

unread,
Dec 22, 2015, 8:15:39 AM12/22/15
to openpyxl-users, war.d...@gmail.com
This is the command you should use:
ws.title = "New Title"
Reply all
Reply to author
Forward
0 new messages