Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Can I use Environment variables (such as %USERPROFILE%) in Excel .

no, but you can access the value of the variable and build the string
yourself.

sStr = Environ("Userprofile")

for example:
? environ("Userprofile")
C:\Documents and Settings\ogilvtw

so you could use something like
sStr1 = Environ("Userprofile") & "\abcd"

--
Regards,
Tom Ogilvy


"CJH" wrote in message
...
gIs it possible to store environment variables as part of the path to

Linked
Workbooks and allow excel to substitute them when evaluating the links?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel General Environment Techtrainer Excel Discussion (Misc queries) 1 January 18th 08 12:25 PM
System Environment Variables bdickert Excel Discussion (Misc queries) 1 October 8th 06 08:40 PM
System Environment Variables bdickert Excel Discussion (Misc queries) 9 October 7th 06 09:34 PM
Can excel regognise asp environment? Clogger71 Excel Discussion (Misc queries) 0 July 6th 06 06:24 PM
VB Automation is Whacking out my Excel Environment Joseph Geretz Excel Discussion (Misc queries) 2 December 29th 04 03:49 PM


All times are GMT +1. The time now is 08:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"