Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control Windows Explorer Through VBA

Status
Not open for further replies.

esib

IS-IT--Management
Sep 10, 2004
35
US
Hello

Having trouble figuring out how I may do this. Let's say I want an event to open Windows Explorer and then perform operations in that environment. For instance, I want to open windows explorer and then go to the Map Network Drive tool. Is that possible?

Let me know if this is not specific enough.

Thanks
 
...you could have vba write a command prompt "batch file"
a containing "netuse" command string.

and then run that file via the shell command.
 
If you just need to map a network drive then
Here is one of many ways......

Code:
Sub Tester()
Dim WshNetwork As Object

Set WshNetwork = CreateObject("WScript.Network")

WshNetwork.MapNetworkDrive "H:", "\\Server\Public"

Set WshNetwork = Nothing

End Sub


If you want to see the Dialog then



Ivan F Moala
xcelsmall.bmp
 
Thanks for the reply. I should have been more specific. We have an instance of FileNET and project related documents need to be stored there. We do not have FileNET fully integrated with Microsoft Office (FileNET group said there are problems with the integration) and so it is tedious for project managers, analysts, etc... to store documents out there. Mainly they have to create a word doc, then open windows explorer, then find the doc, then drag it into a FileNET library. I would like to be able to add a button that initiates the FileNET import process to Word. Windows explorer has this functionality added when the user installs FileNET. So I was hoping I could launch Windows Explorer and then initiate the import through the windows explorer tools.

This is mainly because I do not know the FileNET VBA objects.

Thanks for any help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top