TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Appaarently Application.FileSearch is no longer supported in Word 2010.
(I'm "transitioning from Word 2000/2003; it's OK, I've already heard all the "comments" about "dinosaurs.")
When the following code is run, I get an Error 5111 "command is not available on this platform" message, with the 1st line below highlighted:
With Application.FileSearch
.LookIn = strFilePath
.FileName = "*.*"
.Execute (msoSortByFileName)
intFilesFoundCount = .FoundFiles.Count
If intFilesFoundCount = 0 Then
X = MsgBox("No files found in selected directory.", vbInformation, "No Files Found")
End
Else
Application.Documents.Add
ActiveDocument.PageSetup.Orientation = wdOrientLandscape
End If
End With
Create and publish documentation through multiple channels with Doc-To-Help.
Choose your authoring formats and get any output you may need. Try
Doc-To-Help, now with MS SharePoint integration, free for 30-days. http://www.doctohelp.com
---
You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-