ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Find out Operating System (https://www.excelbanter.com/excel-programming/288219-find-out-operating-system.html)

Mohan[_2_]

Find out Operating System
 

Is there a way to find out the Operating System on a workstation through VBA code.

I am using other exe files of the operating system (like notepad.exe). Different operating system has this file in different locations. How can I find out the OS of the workstation running Excel through VBA code.?

Any help is appreciated.

Thank you

Chip Pearson

Find out Operating System
 
Mohan,

Use

Application.OperatingSystem



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Mohan" wrote in message
...

Is there a way to find out the Operating System on a

workstation through VBA code.

I am using other exe files of the operating system (like

notepad.exe). Different operating system has this file in
different locations. How can I find out the OS of the
workstation running Excel through VBA code.?

Any help is appreciated.

Thank you




Tom Ogilvy

Find out Operating System
 
? application.OperatingSystem
Windows (32-bit) NT 5.00

--
Regards,
Tom Ogilvy

"Mohan" wrote in message
...

Is there a way to find out the Operating System on a workstation through

VBA code.

I am using other exe files of the operating system (like notepad.exe).

Different operating system has this file in different locations. How can I
find out the OS of the workstation running Excel through VBA code.?

Any help is appreciated.

Thank you




Michel Pierron

Find out Operating System
 
Hi Mohan;
May be:
MsgBox Environ(21) or MsgBox Environ("windir")

MP

"Mohan" a écrit dans le message de
...

Is there a way to find out the Operating System on a workstation through

VBA code.

I am using other exe files of the operating system (like notepad.exe).

Different operating system has this file in different locations. How can I
find out the OS of the workstation running Excel through VBA code.?

Any help is appreciated.

Thank you




Mohan[_4_]

Find out Operating System
 
Thank you .. It worke

----- Tom Ogilvy wrote: ----

? application.OperatingSyste
Windows (32-bit) NT 5.0

--
Regards
Tom Ogilv

"Mohan" wrote in messag
..
Is there a way to find out the Operating System on a workstation throug

VBA code
I am using other exe files of the operating system (like notepad.exe)

Different operating system has this file in different locations. How can
find out the OS of the workstation running Excel through VBA code.
Any help is appreciated
Thank yo





Beto[_3_]

Find out Operating System
 
Mohan wrote:

Is there a way to find out the Operating System on a workstation through VBA code.

I am using other exe files of the operating system (like notepad.exe). Different operating system has this file in different locations. How can I find out the OS of the workstation running Excel through VBA code.?


Excel.Parent.OperatingSystem

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.



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

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