Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can use the SetCurrentDirectoryAPI to set the current directory to
a UNC path. Here's a quick procedure that will do this: Private Declare Function GetCurrentDirectoryA Lib "kernel32" _ (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long Public Sub SetUNCPath(ByVal szPathToSet As String) SetCurrentDirectoryA szPathToSet End Sub Despite the name, it works on regular drive\path strings as well. -- Rob Bovey, MCSE, MCSD, Excel MVP Application Professionals http://www.appspro.com/ * Please post all replies to this newsgroup * * I delete all unsolicited e-mail responses * "pkohler " wrote in message ... One Clarifying point. The path that I want to open is a network path. I.E. \\ShareName\Folder\etc --- Message posted from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I set a default path when using Application.GetOpenFilename | Excel Programming | |||
GetOpenFilename Dialog default path | Excel Programming | |||
path names in getopenfilename | Excel Programming | |||
GetopenFilename default path | Excel Programming | |||
Application.GetOpenFileName | Excel Programming |