![]() |
#1
|
|||
|
|||
![]()
A little new to Word so any help would be greatly appreciated. I believe that I need to replace Application.FileSearch with FileSystemObject to make my macro work in 2007. Below is the code causing the issue:
With Application.FileSearch .NewSearch .LookIn = MainPath .SearchSubFolders = False .FileName = DataName .FileType = msoFileTypeAllFiles If Not .Execute() > 0 Then 'if data file is not found GoTo NoDataFile 'branches to label at the end of this procedure to open _ the Main Dialog box End If End With Any ideas ![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't set color in any Office application | student25 | Office | 0 | 02-27-2010 02:12 PM |
![]() |
FrankW | Office | 2 | 06-13-2009 01:16 AM |
What is Application Automation and How can I use it in VBA | KramerJ | Excel | 0 | 03-30-2009 12:59 PM |
Application.Caller | pankajkankaria | Excel | 0 | 03-18-2009 11:48 AM |
![]() |
Richard Harison | Word | 3 | 12-20-2005 03:22 PM |