+ Reply to Thread
Results 1 to 3 of 3

Accessing the Desktop

  1. #1
    Registered User
    Join Date
    06-29-2005
    Posts
    46

    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
    Last edited by Raman325; 08-11-2005 at 06:05 PM.

  2. #2
    Bob Phillips
    Guest

    Re: 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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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. #3
    Registered User
    Join Date
    06-29-2005
    Posts
    46
    Thanks for the reply. I'll try it out, thanks for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1