Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 11-16-2015, 03:18 PM
jc491's Avatar
jc491 jc491 is offline Word VBA  - Split Document By Headings - Save File Name As Heading Name Windows 10 Word VBA  - Split Document By Headings - Save File Name As Heading Name Office 2016
VBA Novice
Word VBA  - Split Document By Headings - Save File Name As Heading Name
 
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
 

Tags
document, heading, split



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word VBA  - Split Document By Headings - Save File Name As Heading Name split word document based on bookmarks with each new document title of the bookmark megatronixs Word VBA 9 09-05-2020 02:29 PM
Word VBA  - Split Document By Headings - Save File Name As Heading Name How to Restore Heading 1, Heading 2, etc. within a Word Document cheech1981 Word 9 01-11-2017 02:14 AM
Word VBA  - Split Document By Headings - Save File Name As Heading Name How can I save a Word Document as a PDF file with a merged field filename? kp2009 Word VBA 5 08-27-2015 11:45 PM
Word VBA  - Split Document By Headings - Save File Name As Heading Name Split multi-page mail merge document, then name file from letter info. BriMan83 Mail Merge 1 04-24-2013 11:35 PM
Word VBA  - Split Document By Headings - Save File Name As Heading Name Macro to create new word doc and save the file using String found in the document VBNation Word VBA 2 02-08-2013 07:14 AM

Other Forums: Access Forums

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