Hi,

Iâ??ve a code that work fine with Word in Office 2003, but it returns an error
code with Office 2007: â??This command is not available on this platformâ??.

The code breaks in the following line: Set fs = Applicaton.FileSearch

Do you know why?

Re: FileSearch with Office 2007 by Karl

Karl
Thu Apr 03 12:23:41 PDT 2008

Ricardo Rodrigues wrote:
> Iâ??ve a code that work fine with Word in Office 2003, but it returns an error
> code with Office 2007: â??This command is not available on this platformâ??.
>
> The code breaks in the following line: Set fs = Applicaton.FileSearch
>
> Do you know why?

Are you asking, "Do [we] know why Microsoft chooses to break their programming
languages by not ensuring forward compatability?"

Best anyone can really do on that is speculate. Java-envy, maybe?

http://groups.google.com/groups/search?hl=en&q=Application.FileSearch+office+2007
--
.NET: It's About Trust!
http://vfred.mvps.org



Re: FileSearch with Office 2007 by Jonathan

Jonathan
Thu Apr 03 14:16:27 PDT 2008


"Ricardo Rodrigues" <RicardoRodrigues@discussions.microsoft.com> wrote in
message news:77B1121B-CA95-4B01-AFD7-EC3321B28441@microsoft.com...
> Hi,
>
> I've a code that work fine with Word in Office 2003, but it returns an
> error
> code with Office 2007: "This command is not available on this platform".
>
> The code breaks in the following line: Set fs = Applicaton.FileSearch
>
> Do you know why?
>

Yes. Microsoft dropped the FileSearch object from the Office 2007 object
model. No, I don't know why.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup