ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   system variables (https://www.excelbanter.com/excel-programming/374583-system-variables.html)

William E Voorhees

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

Thanks,

Bill V



Nigel

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





Bob Phillips

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





William E Voorhees

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








All times are GMT +1. The time now is 09:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com