how to set an environment variable programmatically?

A

Agostino

How do I set a system environment variable programmatically?
Is there any api call?
Thanks in advance
Agostino
 
R

Rod Gill

Not from within VBA. You could look up a Windows API call and call that from
VBA. Look at msdn.microsoft.com for Windows API's or search the web.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top