I've written an addin that for some reason does not load up the next time I start it even though it is selected under Tools - Addins. I've tracked it down to a Registry issue.
The addin value is written as HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Excel\Options Name 'Open7' Data '/F "C:\Documents and Settings\Dave\My Documents\BEE 200503.xla"'.
If I delete the /F prefix the addin always works.
Two questions:
(1) Why does the addin have a /F prefix
(2) I know I can use Windows API calls to query and write to the registry. But after searching the web I haven't found much help outside the standard GetSetting procedure or .ini profiles. Can someone please either point me to a good source of info on writing the API calls that I need or give me a hand with the functions.
The addin uses modeless forms so I need to detect whether the version(s) of excel on the PC is Excel 2000 or above. I plan on using the registry API calls for this as well.
Cheers
Dave
The addin value is written as HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Excel\Options Name 'Open7' Data '/F "C:\Documents and Settings\Dave\My Documents\BEE 200503.xla"'.
If I delete the /F prefix the addin always works.
Two questions:
(1) Why does the addin have a /F prefix
(2) I know I can use Windows API calls to query and write to the registry. But after searching the web I haven't found much help outside the standard GetSetting procedure or .ini profiles. Can someone please either point me to a good source of info on writing the API calls that I need or give me a hand with the functions.
The addin uses modeless forms so I need to detect whether the version(s) of excel on the PC is Excel 2000 or above. I plan on using the registry API calls for this as well.
Cheers
Dave