A vaguely related question seems to be: Remove AddIn path from UDF in Excel formula
Hello, I am having trouble keeping an excel vba add-in in sync between two computers.
Computer A Windows 7 - Excel 2007
Path for add-ins: %APPDATA%\Microsoft\AddIns
%APPDATA% = z:.windows\Application Data\
Computer B Windows 7 - Excel 2010
Path for add-ins = %APPDATA%\Roaming\Microsoft\AddIns
%APPDATA% = c:\Users\username\Roaming\
In each directory I have identical plugin.xlam add-in files. The add-in contains simple functions of the form:
Public Function avog()
avog = 6.02214129E+23
End Function
When I save a workbook using avog in computer A and open it in computer B, everyplace the function avog is used is replaced by 'pathname to addin file'!avog(). Since the path names on each computer are different, I have to search and replace the path string to remove it everywhere in the workbook. The same happens from B to A.
How can I tell excel to stop adding the path? Or is it possible to make excel aware that the function will be available in the other computer at a different location?