christhedonstar
Programmer
Hi,
If I open Excel and then create an environment variable on my computer, I cannot see that environment variable when I use environ("myEnvironmentVariable"). Also cannot see it if I use the WScript.Shell.ExpandEnvironmentStrings("%" & myEnvironmentVariable & "%") function.
I only can see it if I restart Excel and run those functions. Is there anyway to get the variable value without restarting Excel?
Thanks in advance,
Chris
If I open Excel and then create an environment variable on my computer, I cannot see that environment variable when I use environ("myEnvironmentVariable"). Also cannot see it if I use the WScript.Shell.ExpandEnvironmentStrings("%" & myEnvironmentVariable & "%") function.
I only can see it if I restart Excel and run those functions. Is there anyway to get the variable value without restarting Excel?
Thanks in advance,
Chris