_Application.CompareDocuments Method Visual Basic

Greetings,

 After using some SDK's, I have went and installed word on multiple computers. I could use the compare feature in word, but I have multiple documents 10 - 30 to compare. Looking to use _Application.CompareDocuments Method  to compare multiple documents and output a file with similarities. Is this possible? If so could you please help with code, I found some code on MSDN but I can't seem to get it to work correctly.

'Declaration
Function CompareDocuments ( _
	OriginalDocument As Document, _
	RevisedDocument As Document, _
	Destination As WdCompareDestination, _
	Granularity As WdGranularity, _
	CompareFormatting As Boolean, _
	CompareCaseChanges As Boolean, _
	CompareWhitespace As Boolean, _
	CompareTables As Boolean, _
	CompareHeaders As Boolean, _
	CompareFootnotes As Boolean, _
	CompareTextboxes As Boolean, _
	CompareFields As Boolean, _
	CompareComments As Boolean, _
	CompareMoves As Boolean, _
	RevisedAuthor As String, _
	IgnoreAllComparisonWarnings As Boolean _
) As Document
'Usage
Dim instance As _Application
Dim OriginalDocument As Document
Dim RevisedDocument As Document
Dim Destination As WdCompareDestination
Dim Granularity As WdGranularity
Dim CompareFormatting As Boolean
Dim CompareCaseChanges As Boolean
Dim CompareWhitespace As Boolean
Dim CompareTables As Boolean
Dim CompareHeaders As Boolean
Dim CompareFootnotes As Boolean
Dim CompareTextboxes As Boolean
Dim CompareFields As Boolean
Dim CompareComments As Boolean
Dim CompareMoves As Boolean
Dim RevisedAuthor As String
Dim IgnoreAllComparisonWarnings As Boolean
Dim returnValue As Document

returnValue = instance.CompareDocuments(OriginalDocument, _
	RevisedDocument, Destination, Granularity, _
	CompareFormatting, CompareCaseChanges, _
	CompareWhitespace, CompareTables, _
	CompareHeaders, CompareFootnotes, _
	CompareTextboxes, CompareFields, _
	CompareComments, CompareMoves, RevisedAuthor, _
	IgnoreAllComparisonWarnings)

Open in new window

LVL 1
-GeekAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

aikimarkCommented:
Is this a VB.Net VSTO or a Word/VBA run time environment?
0
-GeekAuthor Commented:
Using VB.net
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
-GeekAuthor Commented:
figured it out
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.