• Macro to map a drive (2003)

    Author
    Topic
    #433001

    Hello,

    I need to map a network drive and I was wondering if there was a way to do it via excel or not. Basically, they will be selecting drive J and folder testsrv01groupstimesheets. Any help would be great.

    Viewing 1 reply thread
    Author
    Replies
    • #1017090

      This is not really an Excel question, so this thread has been moved to the VB/VBA forum.

    • #1017091

      For example:

      CreateObject(“WScript.Network”).MapNetworkDrive “J:”, “testsrv01groupstimesheets”

      (Are you sure about that path? There should only be a double backslash at the beginning)

      • #1017114

        Hans,
        Can you tell me via which program I can do this? I would like to do it in an excel file or word. By the way, you are correct about the //.

        • #1017115

          The line I posted can be used in a macro in any of the Office applications – Word, Excel, PowerPoint, Access, Outlook.

    Viewing 1 reply thread
    Reply To: Macro to map a drive (2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: