I want to use VBA to read a value from an app-specific key that I have already added to the Registry (HKCU) using Regedit. It's a simple, single string value. I have found various code samples, snippets, and instructions; but so far I have not been able to adapt any of them to work in my application. I believe there is a fairly simple routine (2 or 3 lines) to do this, as long as the key is in HKCU. Does the key also have to be in a specific path in HKCU? If yes, I can put it there. I would be grateful to be provided with the code, or pointed to a web page with code and instructions.
Thanks in advance. I use Excel 2016, with fully up-to-date Windows10.
Bookmarks