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

I hope that someone here can help me with this.

Is there a way of identifying which operating system is being used, or where
the Desktop folder is?

The requirement is to save a file to the desktop without worrying about the
username. However, there are users on Windows Server 2003, Windows Server
2008, Windows Vista and Windows XP.

thanks in advance

Carl
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Windows Operating System

Sub WhichOne()
MsgBox (Application.OperatingSystem)
End Sub
--
Gary''s Student - gsnu200832


"Carl Sprake, Oxford, UK" wrote:

I hope that someone here can help me with this.

Is there a way of identifying which operating system is being used, or where
the Desktop folder is?

The requirement is to save a file to the desktop without worrying about the
username. However, there are users on Windows Server 2003, Windows Server
2008, Windows Vista and Windows XP.

thanks in advance

Carl

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Windows Operating System

And for the desktop

MyPath = CreateObject("WScript.Shell").Specialfolders("Desk Top")
msgbox MyPath

Mike

"Carl Sprake, Oxford, UK" wrote:

I hope that someone here can help me with this.

Is there a way of identifying which operating system is being used, or where
the Desktop folder is?

The requirement is to save a file to the desktop without worrying about the
username. However, there are users on Windows Server 2003, Windows Server
2008, Windows Vista and Windows XP.

thanks in advance

Carl

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
Problems in macros after chaning Operating system to Windows XP Vijay Kotian Excel Programming 0 September 16th 08 02:11 PM
How to check Operating System? NateBuckley Excel Programming 11 August 11th 08 05:52 PM
Find out Operating System Mohan[_2_] Excel Programming 5 January 16th 04 08:36 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 12:40 PM.

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"