VBA - Edit Registry - is it possible??

  • Thread starter Thread starter Jado
  • Start date Start date
J

Jado

Hi

I need to make changes in the registry..then stop and restart a service
under WinXP.

the information for the registry will be pulled from an Access 97 db.

does anyone know how to edit the registry directly from vba...

or of any command line program that can be called from vba.

if so... would it be possible to include an example of how to do this.

Thanks

Jado
 
Jado said:
Hi

I need to make changes in the registry..then stop and restart a service
under WinXP.

the information for the registry will be pulled from an Access 97 db.

does anyone know how to edit the registry directly from vba...

or of any command line program that can be called from vba.

if so... would it be possible to include an example of how to do this.

Thanks

Jado

Jado,

try the class file http://www.vbusers.com/downloads/clsRegistry.cls

Sample should be in the source code.

cheers,
Stephan
 
Make sure the user running the database has sufficient o/s level permissions
to update the relevant portion of the registry! In win9x, anyone could
update anywhere, AFAIK. In winXP, I'm sure there are more restrictions.

HTH,
TC
 
Back
Top