Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-01-2019, 10:18 PM
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,

I posted on another one of the threads you responded to as well. I am trying to use a macro to split a document, on the other post it was by heading, on https://www.msofficeforums.com/word-...name-each.html is by header. I think header is a preferred option for me, but either one will do as long as it works. When I try the code you posted I receive the following error:

"Run time error 4605: this method or property is not available because the current selection is locked for editing."

When I hit debug it brings me to the following line of code:

.Range.PasteAndFormat (wdFormatOriginalFormatting)

The other macro you suggested (splitting by heading) didn't work either. Do you think this could be a bigger overall issue (like permissions) rather than an issue with the macro itself?

Thanks!
Gingergreadgrl

Last edited by macropod; 09-01-2019 at 10:26 PM. Reason: Split to new thread
Reply With Quote
 



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 02:47 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