MKZ Industries wrote: ↑Thu Sep 12, 2024 2:13 pm
Is there any way to do this automatically without having to open each and every spreadsheet?
Not unless you write a macro. Either
you open the spreadsheets or a
macro opens them. Create a new topic in
Macros and UNO API if you want to explore that idea. You can also ask a Moderator to move this topic to that forum. Expect to spend a week or so writing your first macro, more if you're not already a programmer. You will find links in the macro forum to help people learn about macros. This is not going to be an easy first macro project. A recorded macro cannot open and close files.
MKZ Industries wrote: ↑Thu Sep 12, 2024 2:13 pm
A Calc sheet with some common data …
A Calc sheet for each type of product …
A Calc sheet that reads from all the product sheets …
We generally use the term
spreadsheet to refer to a Calc
file, that is, an ODS file like Common.ods. The term
sheet refers to one of the many subdivisions that a Calc
spreadsheet can contain, where Sheet1.A1 references cell A1 in one of the subdivisions. The
sheet subdivisions are managed through the menus Edit → Sheet, Insert → Sheet, and Format → Sheet.
If the items you mention are all
sheets, they can all be in one
spreadsheet file. Then the need to open multiple files disappears. Or are you using the term
Calc sheet to mean
spreadsheet? Inter-
sheet links in a
spreadsheet provide more features and are faster than external links. Calc must open the target
spreadsheet for an external link in the background before it can access the linked data. When a cell in a
sheet is updated, inter-
sheet links in that
spreadsheet immediately use the new value. When a cell in an external
spreadsheet is updated, the file must be saved before the new value is available via an external link.
If you want to keep each type of product in a separate
spreadsheet file, you can use the file manager of your operating system to open big groups of them at once. You'd have to experiment how practical it is on your computer to have Calc open hundreds of
spreadsheets at once. I don't use Windows but on MacOS I can select dozens of files in
Finder and use File → Open to open all of them, then use File →
Save All after Calc has refreshed the links.
You are more likely to get further assistance in this topic if you
attach some data demonstrating the situation
(remove confidential information then use Post Reply, not Quick Reply, and don't attach a picture instead of the spreadsheet itself). The Calc forum is not the correct one to ask about macros. You risk having your topic locked if you ask about writing macros in the Calc forum.
MKZ Industries wrote: ↑Thu Sep 12, 2024 2:13 pm
… products I make and sell from my small workshop:
Since this data is for a business you will want to ensure that you have adequate backups. Read section
6. Saving your data and making backups in
Ten concepts that every Calc user should know.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).