Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default 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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 214
Default 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



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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




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
operating system not configured to run excel gmoty Excel Discussion (Misc queries) 1 April 14th 06 06:33 AM
Microsoft should put operating system on hardware not software Greg Weller Excel Discussion (Misc queries) 0 September 15th 05 05:11 AM
mail program & operating system steve Excel Programming 2 September 23rd 03 10:26 PM
Operating system Don Guillett[_4_] Excel Programming 0 September 10th 03 04:43 PM
Operating system Stephan Kassanke Excel Programming 0 September 10th 03 04:42 PM


All times are GMT +1. The time now is 03:16 AM.

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

About Us

"It's about Microsoft Excel"