Thread: [Solved] Macro to Split Documents
View Single Post
 
Old 09-02-2019, 11:02 AM
Gingerbreadgrl Gingerbreadgrl is offline Windows 10 Office 2016
Novice
 
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