| View previous topic :: View next topic |
| Author |
Message |
BradyBunches Newbie

Joined: 03 Feb 2011 Posts: 3
|
Posted: Thu Feb 03, 2011 8:31 am Post subject: Automate Open --> re-name for 1000 xls workbooks |
|
|
Hi All,
I need to automate a procedure in OO Calc.
I have about 1000 xls workbooks that I need to open, rename and save as xls files.
I'd like to automate the procedure so my eyeballs don't fall out.
Anyone have a suggestion on this?
I'd like to just point a script or something at a folder and have Calc and script do the work for me.
Ideally, it would open a file called workbk1.xls, save it at wrkbk1-new.xls, and then move on to the next file in the folder.
I'm new to OpenOffice so i don't even know where to start.
Thanks,
Brady |
|
| Back to top |
|
 |
ftack Moderator


Joined: 27 Jan 2003 Posts: 3102 Location: Belgium
|
Posted: Thu Feb 03, 2011 8:55 am Post subject: |
|
|
Your intention is not clear. You want to rename spreadsheets? _________________ --
GNU/Linux (Ubuntu) |
|
| Back to top |
|
 |
Robert Tucker Moderator


Joined: 16 Aug 2004 Posts: 3367 Location: Manchester UK
|
Posted: Thu Feb 03, 2011 8:56 am Post subject: |
|
|
Can you not use a batch script on Windows or a shell script if you are on Linux? I don't see why you need to open them all. _________________ LibreOffice 3.6.6 on Fedora 18, LibreOffice 4.0.2 on Ubuntu 13.04 (Double Boot) |
|
| Back to top |
|
 |
BradyBunches Newbie

Joined: 03 Feb 2011 Posts: 3
|
Posted: Thu Feb 03, 2011 10:30 am Post subject: What I'm trying to do |
|
|
We have a collection of Excel spreadsheets (several thousand generated by about 40 different people) Some of the users would protect certain cells on the sheets. This presents a problem for us, because we need to process these sheets with VBA code in excel to add, change or clear certain cells with in the workbooks.
While the spreadsheets themselves are uniform, the passwords certain users used to protect cells are not. In fact, some of the users have no recollection what the passwords could be, and some of the users are no longer with us.
So the plan is to open the spreadsheets in OO Calc, then save them back to xls. This will let me unprotect the cells I need without a password. Then I can run my VBA scripts in Windows to process the workbooks.
The piece of the puzzle I'm missing is how to automate the Open --> Save As in OO Calc.
I have access to Windows, Mac and Ubuntu platforms.
Thanks for your help...
Brady |
|
| Back to top |
|
 |
Robert Tucker Moderator


Joined: 16 Aug 2004 Posts: 3367 Location: Manchester UK
|
|
| Back to top |
|
 |
BradyBunches Newbie

Joined: 03 Feb 2011 Posts: 3
|
Posted: Thu Feb 03, 2011 9:39 pm Post subject: JODConverter |
|
|
Robert,
Thanks for the lead. JODConverter seems very nifty. I'll have a look and see if it will do the trick.
Thanks,
Brady |
|
| Back to top |
|
 |
|