Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default system variables

How do I get a system variable (environment variable) to a cell in my
spreadsheet?

Thanks,

Bill V


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default system variables

Most can just be assigned e.g.

Sheets("Sheet1").Range("A1") = ActiveWindow.DisplayWorkbookTabs

Do you have any specific ones in mind?

--
Cheers
Nigel



"William E Voorhees" wrote in message
...
How do I get a system variable (environment variable) to a cell in my
spreadsheet?

Thanks,

Bill V




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default system variables

Range("A1").value = Environ("UserName")

as an example

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"William E Voorhees" wrote in message
...
How do I get a system variable (environment variable) to a cell in my
spreadsheet?

Thanks,

Bill V




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default system variables

Thanks, that works

"Bob Phillips" wrote in message
...
Range("A1").value = Environ("UserName")

as an example

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"William E Voorhees" wrote in message
...
How do I get a system variable (environment variable) to a cell in my
spreadsheet?

Thanks,

Bill V






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
How do I open an Excel file on XP system, saved on a Vista system JLS7 Excel Discussion (Misc queries) 3 December 2nd 08 04:21 AM
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 system variables be used inside Excel John F[_2_] Excel Programming 2 March 31st 06 11:13 PM
System variables Slava. Excel Programming 4 March 9th 05 04:48 PM


All times are GMT +1. The time now is 02:47 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"