GetWindowsDirectory in Vista

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've been successfully using a programmed spreadsheet that first writes to on
Windows XP that reads from the Windows Directory. I now need to use it on a
Vista machine. It doesn't seem to find the Windows Directory. How do I find
it?
 
Don't know what method you tried, but try:

? Environ("SystemRoot")
C:\WINDOWS


the above is demo't from the immediate window.

Not tested in Windows Vista.
 
Thanks - the code is much shorter your way and works in Vista although the
index references are different. I was able to trap the correct fields -
thanks.
 

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

Back
Top