Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Using Network folders

Try using this Windows API function:

Declare Function SetCurrentDirectoryA Lib "kernel32" (ByVal lpPathName As
String) As Long

Sub SetDir(PathStr as String)
SetCurrentDirectoryA PathStr
End Sub

Just call SetDir with the path you want:

SetDir \\Whatever\...

Put the declaration at the top of the module.

--
Jim Rech
Excel MVP


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
numbering folders Steve G Excel Worksheet Functions 4 September 11th 07 05:34 PM
Passwords for folders? James A Excel Discussion (Misc queries) 1 December 17th 06 02:22 AM
Can't see/use folders on home network signed on as administrator McGinnis Excel Discussion (Misc queries) 2 July 2nd 06 06:06 AM
Excel 2003 won't load files from shared network folders. Lee886 Excel Discussion (Misc queries) 0 January 9th 06 06:06 AM
Copying files ...Network to Network Eric[_6_] Excel Programming 2 July 18th 03 08:59 PM


All times are GMT +1. The time now is 12:47 AM.

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"