Hi All,
I'm trying to use Word VBA to run a compare using the script below:
---
---
I'm receiving Run-time error 4160 / Bad file name. Can anyone help?
Thanks,
Aviator9
I'm trying to use Word VBA to run a compare using the script below:
---
Code:
Sub Macro1()
ChangeFileOpenDirectory "C:\"
Application.CompareDocuments OriginalDocument:=Documents("example.doc"), _
RevisedDocument:=Documents("example2.doc"), Destination:= _
wdCompareDestinationNew, Granularity:=wdGranularityWordLevel, _
CompareFormatting:=True, CompareCaseChanges:=True, CompareWhitespace:= _
True, CompareTables:=True, CompareHeaders:=True, CompareFootnotes:=True, _
CompareTextboxes:=True, CompareFields:=True, CompareComments:=True, _
CompareMoves:=True, RevisedAuthor:="cohen_a", IgnoreAllComparisonWarnings _
:=False
End Sub
I'm receiving Run-time error 4160 / Bad file name. Can anyone help?
Thanks,
Aviator9