Welcome to Dream.In.Code
Become a VB Expert!

Join 137,370 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,862 people online right now. Registration is fast and FREE... Join Now!




Vba Problem

 
Reply to this topicStart new topic

Vba Problem, Application.FileSearch doesn't exist??

vbDALIN
21 May, 2004 - 05:32 AM
Post #1

New D.I.C Head
*

Joined: 27 Jun, 2002
Posts: 22

I'm trying to do a file search with VBA for Visio using Application.FileSearch, but I'm getting a "object doesn't support this method.." error. WTF?

Sure enough, FileSearch isn't a member of Application when I go through the object browser; I only find it as a part of the 'Office' library. But I've done this before (granted with Excel instead of Visio and a different release year), but the help file I found does it this way too. It's probably something simple, but any help would be appreciated.
User is offlineProfile CardPM
+Quote Post

vbDALIN
RE: Vba Problem
24 May, 2004 - 06:28 AM
Post #2

New D.I.C Head
*

Joined: 27 Jun, 2002
Posts: 22

Ended up using Dir()...still can't figure what the problem with FileSearch is though.
User is offlineProfile CardPM
+Quote Post

mi00mf
RE: Vba Problem
28 Jun, 2004 - 01:31 AM
Post #3

New D.I.C Head
*

Joined: 28 Jun, 2004
Posts: 1

Microsoft has confirmed me by phone that's a Viso VBA Help's problem. Visio.Application.Filesearch doesn't exist but there's in other Office Application object as Word, Excel, etc. I solve my problem referencing Office 11.0 Object Lybrary, Word 11.0 Object Lybrary and using Application.Filesearch of Word Application Object.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/5/08 01:20AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month