Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-02-2019, 11:02 AM
Gingerbreadgrl Gingerbreadgrl is offline Macro to Split Documents Windows 10 Macro to Split Documents Office 2016
Novice
Macro to Split Documents
 
Join Date: Sep 2019
Posts: 3
Gingerbreadgrl is on a distinguished road
Default


Hi Paul,

Thanks for your reply. My apologies for posting in two places. However, the posts were about two different pieces of code. The code that I posted about here does not contain

.Range.FormattedText = Rng.FormattedText

However, I did check the other code (for the headings) and that was a user error when typing it in the message box. The actual code did contain the leading period and still produces an error.

So are you suggesting that within the SplitMergedDocument code that I replace the following:

.Range.PasteAndFormat (wdFormatOriginalFormatting)

with:

.Range.FormattedText = Rng.FormattedText

I tried that and it gave me an error at that code line.

Thanks!
Gingerbreadgrl
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to Split Documents Mail Merge - split merged documents and rename each split document based on text in header FuriousD Word VBA 1 05-12-2019 04:06 AM
Using Split Macro - Need to keep first 7 rows CPSmith Excel Programming 1 02-09-2016 08:19 PM
Can I edit 2 documents in split screen? ivanabq Word 2 09-22-2015 04:28 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
Macro to Split Documents Split file y Heading1, saves in My documents didijaba Word VBA 3 05-06-2014 05:35 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:21 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