Perl - Changing Excel Worksheet name -


in perl script writing, trying find way open existing excel spreadsheet, change name of first worksheet, , save it. seem simple task haven't found simple way it.

spreadsheet::writeexcel can change worksheet name, seems can't read in existing excel file.

another constraint perl module use shouldn't need installation. can work around if there's no option, make things more complicated.

edit: using activeperl 5.18, modules included in ideal.

the way of doing while preserving else in excel file use win32::ole.

that requires having excel installed on computer on program run, and, of course, works on windows.

if can't that, have read excel file, , write out contents file, changing name of worksheet in process. depending on have in source excel file, can rather involved rather fast.

see "how can merge 2 excel (xls) files in perl or batch?" , "in perl, how can copy subset of columns xlsx work sheet another?"


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -