Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default [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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default [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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default [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
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
XL2000: Error Message: The Picture Is Too Large and Will Be Trunca jlw12 Excel Discussion (Misc queries) 0 September 6th 06 03:33 PM
Run-time error 75 Path/File access error Casey[_89_] Excel Programming 2 May 9th 06 07:20 PM
Path/File access error (Error 75) using Name Statement blayne Excel Programming 7 November 22nd 05 09:20 PM
Path/File access error (Error 75) after using Name Statement blayne Excel Programming 0 November 10th 05 12:33 AM
Path Not Found Error Ric Payne Excel Programming 0 October 29th 03 07:59 AM


All times are GMT +1. The time now is 01:56 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"