S
statman
Can anyone confirm the error I've been receiving using the following code?
Simple request to eventually allow a user to select which files/projects to
insert into an empty project. I've only included MSGBOX prompts for debugging
purposes. Popup box, following .EXECUTE command, tries to repair the feature
that is "no longer functioning".
CProj = ActiveProject.Name
Cpath = ActiveProject.Path
Cname = ""
tnum1 = 0
With Application.FileSearch
.NewSearch
.LookIn = Cpath
.SearchSubFolders = True
TargetFile = "*.mpp"
.FileName = TargetFile
MsgBox "HI"
If .Execute(SortBy:=msoSortByFileName, SortOrder:=msoSortOrderAscending)
End If
End With
Simple request to eventually allow a user to select which files/projects to
insert into an empty project. I've only included MSGBOX prompts for debugging
purposes. Popup box, following .EXECUTE command, tries to repair the feature
that is "no longer functioning".
CProj = ActiveProject.Name
Cpath = ActiveProject.Path
Cname = ""
tnum1 = 0
With Application.FileSearch
.NewSearch
.LookIn = Cpath
.SearchSubFolders = True
TargetFile = "*.mpp"
.FileName = TargetFile
MsgBox "HI"
If .Execute(SortBy:=msoSortByFileName, SortOrder:=msoSortOrderAscending)
MsgBox "Number of Files Found: " & .FoundFiles.Count0 Then
End If
End With