BACKGROUND: We've got a personal macro workbook that is shared among all people in a certain job role. It makes their jobs much easier and over time many processes have become dependent upon these macros. The macros have evolved over time and I am seeking to control the deployed version across all systems. I have an update, for example, that I would like to push out now so that everyone has the same, new, version of the macro workbook.
PROBLEM: The destination of XLSTART is not reliable across versions and even within a single version of Excel I have found that different editions could have different paths. I need to deploy this to a large number of computers and the installed version could be anything from 2003-2016
QUESTION: Is there a reliable way to find the XLSTART directory without listing every possibility of every version of Excel ever?
NOTES:
Someone used to do this manually but we are getting too big for that. Currently, I have been building a batch file that lists every possible path to XLSTART and it feels stupid. I am hoping that there is a better way that I am unaware of.
I thought it would be nice if there was an %XLSTART% variable but we have a couple of users who have multiple versions of Excel installed. (I know, don't ask). So on these systems I need to install the macro workbook in to multiple paths so that the macros are available in multiple versions of Excel installed on the same PC.
Excel\InstallRoot
and add\xlstart
at the end of the string found.