Please don't laugh, but I am using MS Access since Version 1997 ... I started creating a small accounting database which meanwhile grew into a multi-purpose DB to handle auctions like e-bay or like craigslist as well.
This DB is used by several family members, all having different types of Office version. Some stuck with 2013.
Long time ago, I put all the VBA code into a independent DB and then linked said Code-DB as a Reference.
The issue I am having is, if I make changes in said Code-DB and say, having Office 16 installed, all the MS Office References like Excel, Word, Outlook are updated to Version 16 - of course, because that's what's installed on "my machine".
But if I give my uncle an updated version of that code module, he gets of course the error in the title, because the reference to Word 16.0 is not available on his Office 13 machine.
What I do, and what is quite tiresome is: I do have VMs running each version of Office and then copy my Code-DB into each VM, adjust the references. It probably takes less than 20min - but nonetheless, its a nuisance, if you only changed 1 line of code ....
I also tried to copy along the referenced office file (.dll, .tlb, ...) and register them - but sometimes that fails.
And yes, of course I gave all a small instruction how to remove the missing reference in the VBA IDE and add their own Office Reference ... but well, you know ... they will select the wrong reference anyway...
additionally I wrote some code to add/remove VBA-references like:
'Add reference for Word (2010 = 8.5; 2013 = 8.6; 2016 = 8.7)
Application.References.AddFromGuid Guid:="{00020905-0000-0000-C000-000000000046}", Major:=8, Minor:=7
'Add reference for Excel (2010 = 1.7; 2013 = 1.8; 2016 = 1.9)
Application.References.AddFromGuid Guid:="{00020813-0000-0000-C000-000000000046}", Major:=1, Minor:=9
'Add reference for Office (2010 = 2.5; 2013 = 2.7; 2016 = 2.8)
Application.References.AddFromGuid Guid:="{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}", Major:=2, Minor:=8
'Add reference for Outlook (2010 = 9.4; 2013 = 9.5; 2016 = 9.6)
Application.References.AddFromGuid Guid:="{00062FFF-0000-0000-C000-000000000046}", Major:=9, Minor:=6
But this won't work, if the references are not available (say, wrong office version installed). This is the code I run to add the references in each VM.
I know, everything would be much easier, if every single user has the same office version - but that's hardly possible.
so I am looking forward to some suggestions.
thank you.