Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2019, 04:06 AM
macropod's Avatar
macropod macropod is offline Mail Merge - split merged documents and rename each split document based on text in header Windows 7 64bit Mail Merge - split merged documents and rename each split document based on text in header Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Change:


Code:
Set Rng = .Range.Paragraphs(1).Range
to:
Code:
Set Rng = .Headers(wdHeaderFooterPrimary).Range.Paragraphs(1).Range
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
vba code, word 2013 problem



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge - split merged documents and rename each split document based on text in header split word document based on bookmarks with each new document title of the bookmark megatronixs Word VBA 9 09-05-2020 02:29 PM
Help Please: New VBA user trying to use a macro to split Mail Merge documents. Two Run-Time Error zipit189 Word VBA 7 03-18-2015 01:13 PM
Mail Merge - split merged documents and rename each split document based on text in header Split each page of mail merge into separate pdf Declan Mail Merge 1 05-28-2014 02:02 AM
Mail Merge - split merged documents and rename each split document based on text in header Split multi-page mail merge document, then name file from letter info. BriMan83 Mail Merge 1 04-24-2013 11:35 PM
Mail Merge - split merged documents and rename each split document based on text in header Automatically split Mail Merge based on number of pages SaneMan Mail Merge 1 12-03-2011 01:11 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:01 PM.


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