Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Macro to Map Network Drive

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
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

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
Map Network Drive leerem Excel Discussion (Misc queries) 2 January 12th 09 07:11 PM
Excel in macro and connecting to a network drive question Mike S. Excel Discussion (Misc queries) 3 November 8th 08 02:51 AM
map network drive lumpy04 Excel Discussion (Misc queries) 1 March 15th 07 05:31 PM
Multi-user macro on network drive? xangelusx Excel Discussion (Misc queries) 3 July 25th 05 10:05 PM
Link workbooks-C drive to network drive Earl Excel Worksheet Functions 0 April 19th 05 05:50 PM


All times are GMT +1. The time now is 08:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"