Re: Windows Registry
- From: "Ramesh, MS-MVP" <ramesh@xxxxxxxxxxxx>
- Date: Thu, 2 Feb 2006 09:51:21 +0530
Get the Path from here: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe Why Use VBA to Call the Windows API?: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/modcore/html/deovrwhyusevbatocallwindowsapi.asp [Excerpt] For example, VBA provides functions that read from and write to a portion of the registry reserved for VBA applications. You can use these functions - GetSetting, GetAllSettings, SaveSetting, and DeleteSetting - to maintain information about your application between sessions. However, these functions permit you to work with only one subkey in the registry, namely the \HKEY_CURRENT_USER\Software\VB and VBA Program Settings subkey. If you want to store or to retrieve information from any other part of the registry, you must use the Windows API. [/Excerpt] How To Use the Registry API to Save and Retrieve Setting: http://support.microsoft.com/kb/q145679/ -- Regards, Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User] Windows® XP Troubleshooting http://www.winhelponline.com "Friedi" <Friedi@xxxxxxxxxx> wrote in message news:CFCC9166-E9D7-4F63-8AD3-34C50A9345F7@xxxxxxxxxxxxxxxx Using the 'GetSetting' Function in VBA (We work with Access 2002/2003) we only get info from the Windows Registry within the section 'VB and VBA Program Settings'. We would like to get info of a setting - by means of VBA Code- of the actual path of an Acrobat Reader installed on a computer. On my machine for example,the actual path is: c:\Program Files\Adobe\Acrobat 7.0\Reader. On my 2nd machine, Acrobat is installed on D: and is version 6. How do we have to program with VBA to get this information out of the Windows Registry? Can anybody help? Thanks Friedi -- Friedi .
- Follow-Ups:
- Re: Windows Registry
- From: Friedi
- Re: Windows Registry
- Prev by Date: Re: File Locking
- Next by Date: Re: ie7 beta available
- Previous by thread: Re: Mouse weirdness
- Next by thread: Re: Windows Registry
- Index(es):
Relevant Pages
|
Loading