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


Hi,

Another question for you guys, sorry. How can I get the filepath to the
desktop of the user currently logged into the computer? This mactro will
be running on many different computers so the user will change as will
the path to the desktop. Any help would be appreciated, thanks in
advance.

-Raman


--
Raman325
------------------------------------------------------------------------
Raman325's Profile: http://www.excelforum.com/member.php...o&userid=24748
View this thread: http://www.excelforum.com/showthread...hreadid=395161

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Accessing the Desktop

'----------------------------------------------------------------
Sub SpecialFolders()
'----------------------------------------------------------------
Dim oWSH As Object
Const wsh_SPECIAL_FOLDER_DESKTOP As Long = 4

Set oWSH = CreateObject("WScript.Shell")

MsgBox oWSH.SpecialFolders(wsh_SPECIAL_FOLDER_DESKTOP)

Set oWSH = Nothing

End Sub



--

HTH

RP
(remove nothere from the email address if mailing direct)


"Raman325" wrote in
message ...

Hi,

Another question for you guys, sorry. How can I get the filepath to the
desktop of the user currently logged into the computer? This mactro will
be running on many different computers so the user will change as will
the path to the desktop. Any help would be appreciated, thanks in
advance.

-Raman


--
Raman325
------------------------------------------------------------------------
Raman325's Profile:

http://www.excelforum.com/member.php...o&userid=24748
View this thread: http://www.excelforum.com/showthread...hreadid=395161



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Accessing the Desktop


Thanks for the reply. I'll try it out, thanks for your help

--
Raman32
-----------------------------------------------------------------------
Raman325's Profile: http://www.excelforum.com/member.php...fo&userid=2474
View this thread: http://www.excelforum.com/showthread.php?threadid=39516

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
EXCEL FILES SAVED TO DESKTOP WILL NOT OPEN FROM DESKTOP randy111 Excel Discussion (Misc queries) 3 January 13th 08 10:38 PM
Show desktop [email protected] Excel Worksheet Functions 2 March 27th 07 04:42 PM
Refering to Desktop Lynda Excel Programming 3 February 1st 05 01:57 AM
Accessing the Desktop Orlando Magalhães Filho Excel Programming 1 July 15th 03 06:55 AM


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