[Solved] [Basic] Replace Sheet with a new one

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Awara_973
Posts: 3
Joined: Mon Jan 29, 2024 4:21 pm

[Solved] [Basic] Replace Sheet with a new one

Post by Awara_973 »

Hello everybody,

I'm working on a calc file which is using two sheets including a sheet with a lots of name.
The first sheet deals with the datas of the second one.
My colleagues will have to work with that file, so every first sheet (of my colleagues) will be different.
My problem is that I need to put regularly up to date the second one with new datas.

So, my idea is to send as often as needed the new 2nd sheet to my colleagues. If such a macro exists, they just would have to select the button "Update this file" and a window would launch. Then, the users just have to select the path of the new file and then the program would replace the old second sheet with the new one.

Is this possible ?

Attached is a file which could be useful to imagine what I need.

Thanks a lot !
Attachments
Replace_sheet_with_another_doc.ods
(29.43 KiB) Downloaded 90 times
Last edited by Hagar Delest on Sat Feb 03, 2024 6:26 pm, edited 1 time in total.
Reason: tagged solved.
Libre Office 7.3.7.2 With Ubuntu 22.04.3 LTS
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Basic] Replace Sheet with a new one

Post by Villeroy »

Use a document template.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Awara_973
Posts: 3
Joined: Mon Jan 29, 2024 4:21 pm

Re: [Basic] Replace Sheet with a new one

Post by Awara_973 »

Thank you for your answer. Which option of the templates corresponds to my needs please ?
Libre Office 7.3.7.2 With Ubuntu 22.04.3 LTS
User avatar
Mr.Dandy
Posts: 427
Joined: Tue Dec 11, 2012 4:22 pm

Re: [Basic] Replace Sheet with a new one

Post by Mr.Dandy »

No options, just save as OTS :)
OpenOffice 4.1.12 - Windows 10
Awara_973
Posts: 3
Joined: Mon Jan 29, 2024 4:21 pm

[Solved] [Basic] Replace Sheet with a new one

Post by Awara_973 »

Thank you !
Libre Office 7.3.7.2 With Ubuntu 22.04.3 LTS
Post Reply