View Single Post
 
Old 11-16-2015, 03:18 PM
jc491's Avatar
jc491 jc491 is offline Windows 10 Office 2016
VBA Novice
 
Join Date: Sep 2015
Location: UK
Posts: 55
jc491 is on a distinguished road
Default

Hi Paul,
thanks for your response.

I will to need some time to read it all and digest it!

I ran the
SplitMergedDocument()

it gave this error 4605
no text selected

Set Rng = .Range
With Rng
If j > 1 Then .MoveEnd wdSection, j - 1
'Contract the range to exclude the Section break
.MoveEnd wdCharacter, -1
' Copy the range
.Copy



The other solution I was thinking was maybe to re save the files with the first paragraph in the document.

That would work - what ever gets the job done really.

So I could
Insert section breaks before the headings -
Use macro to split by section
Rename the Files with the first paragraph?

is that an easier solution

thank you
j
Reply With Quote