View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 6,953
Default GetWindowsDirectory in Vista

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.

--
Regards,
Tom Ogilvy

"Broadband Al" wrote:

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?
--
Oxfordshire, UK