View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
JLatham JLatham is offline
external usenet poster
 
Posts: 2,203
Default Macro to Map Network Drive

Best way to do it is with a VB Script file so you don't have to depend on
Excel.

On this page:
http://visualbasic.ittoolbox.com/doc...rk-drive-11821
you'll find the basic outline for such a script that you can modify. I
didn't test it, so YMMV. But a search for "vb script to map network drive"
will provide lots of other examples.

Simply use a text editor like Notepad to create a file, save it somewhere
with a .vbs filename extension, then put a link (shortcut) to that file in
your 'Startup' folder.


"Dave" wrote:

Hello

I work remotely and have to map my network drives on a daily basis. Is
there a macro I can create that will allow me to map network drives?
Currently, I have to go into Windows Explorer -- Tools -- Map Network Drive
and map the drives "manually". I have to enter the following information:

Drive Letter: S
Folder: \\###.##.###.##\aaaaa$

Then I have to go into "Connect using different user name" and enter:
user name: \\companyname\"myuserID"
password: xxxxxxxxxx

Any help is appreciated.
Thanks