Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
[XL2000] ObjFolder.Self.Path - 438 error
In XL2000 i am receiving a 438 'object doesn't support this property / method
error on the line 'Foldername = oFolder.Self.Path'. I have tried without the "Self" as it doesn't appear to be supported in Xl2000, but the error persists. My test environment is Win98 | XL2000 - but the error was reported on a system apparently running WinXP | XL2000. Any pointers appreciated... Function ChooseFolder() Dim oApp As Object Dim oFolder As Object Dim FolderName As String Set oApp = CreateObject("Shell.Application") Set oFolder = oApp.BrowseForFolder(0, "Choose Folder", 512) If Not oFolder Is Nothing Then FolderName = oFolder.Self.Path If Right(FolderName, 1) < "\" Then FolderName = FolderName & "\" End If ChooseFolder = FolderName End If End Function |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
[XL2000] ObjFolder.Self.Path - 438 error
Try...
FolderName = oFolder.items.Item.Path -- Jim Cone San Francisco, USA http://www.realezsites.com/bus/primitivesoftware "Mike Iacovou" wrote in message In XL2000 i am receiving a 438 'object doesn't support this property / method error on the line 'Foldername = oFolder.Self.Path'. I have tried without the "Self" as it doesn't appear to be supported in Xl2000, but the error persists. My test environment is Win98 | XL2000 - but the error was reported on a system apparently running WinXP | XL2000. Any pointers appreciated... Function ChooseFolder() Dim oApp As Object Dim oFolder As Object Dim FolderName As String Set oApp = CreateObject("Shell.Application") Set oFolder = oApp.BrowseForFolder(0, "Choose Folder", 512) If Not oFolder Is Nothing Then FolderName = oFolder.Self.Path If Right(FolderName, 1) < "\" Then FolderName = FolderName & "\" End If ChooseFolder = FolderName End If End Function |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
[XL2000] ObjFolder.Self.Path - 438 error
thanks Jim. works ok... had just found a compatible API call on j-walk, but
this mod will work very nicely. many many thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
XL2000: Error Message: The Picture Is Too Large and Will Be Trunca | Excel Discussion (Misc queries) | |||
Run-time error 75 Path/File access error | Excel Programming | |||
Path/File access error (Error 75) using Name Statement | Excel Programming | |||
Path/File access error (Error 75) after using Name Statement | Excel Programming | |||
Path Not Found Error | Excel Programming |