@Lupp @Zizi64 @Wanderer
Let me try to put more perspective on things, and what I have done so far (In between my original post - which now I also see being very vague) and this point in time:
Here is the scenario:
I have two computers and a WD storage device. One computer and the storage is physically located at my office, the second is at home (where I am right now). If necessary, I am remotely logging into my computer at work via Remote Desktop Connection.
Both computers have latest version of Libreoffice installed and are running Windows 10.
I have developed a spreadsheet which has several sheets on it:
- Data entry/summary of calculations/report sheet
- Quotation notes which are dynamically altered, based on criteria entered
- Items which are being quoted
- Calculator, which allows to describe the items in the previous sheet, and based on the parameters entered calculates whatever I need it to to obtain price.
- Hidden sheets with data (explanation below):
It retrieves information from other spreadsheet files:
- configuration file spreadsheet - where I store various items such as validation lists arrays (for my aforementioned data entry sheet), tables specific to the raw materials which manufacture from (with data utilized for calculations), etc.
- raw materials spreadsheet - this contains two things: 1, list of raw materials with various parameters, 2. list of quotations for those materials from various suppliers.
The way I have set this up is I have hidden sheets on my main quotation file, which get updated every minute, and I pull the necessary information from those sheets.
Since all three locations have the same set of files, all the information gets pulled from the source directory. Therefore, if I run my main quotation file from the WD external storage drive, from either the home or office computer, the information from linked files is also pulled from the copies located on the WD storage. Whereas if I run the same quotation file from the drive at either home or office, the linkage is from the corresponding files in those same directories. I checked it back and forth and it works flawlessly.
I also have coded some few basic functions. They vary from moving positions of entered data up and down to saving/opening raw information for a particular job in separate spreadsheet files. Thus, if I want to open up a quotation for a particular job, then all the info which I had to manually entered gets copied from that individual file, into that main quotation spreadsheet, and then all the calculations are taking place and a report is generated which I email to the client. (No I am not using the internal email within LibreOffice yet, I still need to learn how to use it). Everything works flawlessly as well, it doesn’t matter where and how I execute it, except for the fact that instead of numbers I get error messages (#N/A) in cells.
The main quotation file has about 50 named ranges. Some of them are dynamic, some static. I had created all this on an old computer which I had recently gotten rid of, and up until recently everything was working fine, even though copies of those files were running on both computers (the old one and the one at work). Originally I had it set up in such way that the main quotation file and the supporting configuration and material spreadsheets were located on both computers, and the raw data files which held individual quotations were located on the WD disk. However, it seemed a bit slow to me (when saving or opening), and I begun utilizing FreeFileSync utility. So what I do now is I synchronize in the following manner:
Home to WD
Work to WD
But I not only synchronize the raw data, but the quotation file + supporting spreadsheets as well. I do this because I constantly add and modify things in the configuration (such as adding new items to my validity lists, and adding new material names/quotations).
I am under the impression that this is where the problem begun. What happens now is the following:
The quotation file works perfectly when I run it from the office computer, but only the copy which is stored locally on the office computer disk. If I execute the same file from the WD drive (from office or from home), or if I execute it at home, there is an issue with those dynamic named ranges. They are simply not recognized.
Even though the behavior already begins when running the file WD file on the office computer, I reinstalled the LibreOffice at home, completely removing the user profile before the new install begun. That obviously did not help. I tried to make new functions within the same main quotation file utilizing the named ranges but with no luck. It seems as if the name and the definition, within the file itself, got disassociated somehow. However, even though I deleted the home and WD copies of that quotation file, and simply copied them from the work computer, the behavior is still the same.
So copy of the Libreoffice at work will work properly if the file is located in its local drive, but not on the external storage facility.
And it will NOT run properly at all at home. Doesn’t matter if I run it locally or if I execute it from the WD drive.
Let me know if any of it makes any sense to you please.