This is a Vista question, but is specific to VBA, so I’m not sure where to post it…
I have an application that uses extensive reading/writing to the registry to store settings.
I do not use SetSetting/GetSetting (which write to the VBA Applications key) but System.PrivateProfileString writing the HKEY_CURRENT_USER.
I now have had two Vista users report the following error message:
run time error – 2147467259 (80004005)
Method ‘PrivateProfileString’ of object ‘System’ failed
Which would seem to indicate that the currently logged in profile does not have permission to modify the registry.
1) Have other VBA programmers run up against this?
2) Is there a simple way to have the user elevate their permissions in order to circumvent this problem?
Thanks for any pointers.