Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-13-2018, 04:19 AM
coriolisss coriolisss is offline Merge documents Windows 10 Merge documents Office 2013
Novice
Merge documents
 
Join Date: Nov 2018
Posts: 2
coriolisss is on a distinguished road
Default Merge documents

Hello,



I am a very bigninner in Word VBA.
I would like to code something to help me merge multiple Word documents in one only Word file, with the "MergeDocuments".
But "Mergedocuments" doesn't work for me :

Code:
    Application.MergeDocuments OriginalDocument:=Documents("Part1A.docx"), _
        RevisedDocument:=Documents("Part2.docx"), Destination:= _
        wdCompareDestinationNew, Granularity:=wdGranularityWordLevel, _
        CompareFormatting:=True, CompareCaseChanges:=True, CompareWhitespace:= _
        True, CompareTables:=True, CompareHeaders:=True, CompareFootnotes:=True, _
        CompareTextboxes:=True, CompareFields:=True, CompareComments:=True, _
        CompareMoves:=True, OriginalAuthor:="GD", RevisedAuthor:= _
        "GD", FormatFrom:=wdMergeFormatFromPrompt
I have got the 4160 error.

Could you help me please ?
Thanks
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
100 Primary Mail Merge Documents - want to add a table with fields to all of the primary documents revans611 Mail Merge 3 09-15-2020 12:07 PM
How to merge track changes from 2 documents jbz Word 1 09-18-2015 01:30 PM
Merge documents Merge info into 5 separate documents kenjmaraty Word 3 07-06-2015 07:30 AM
Merge documents Merge to Seperate Documents joughin Mail Merge 1 05-17-2012 05:08 PM
Merge documents Merge documents ilce Mail Merge 1 02-16-2012 02:33 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:28 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft