Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-03-2025, 02:28 PM
macropod's Avatar
macropod macropod is offline Addition to Split Document Code (by Macropod) Windows 10 Addition to Split Document Code (by Macropod) Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,387
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Simple!



Change
i As Long,
to
i As Long , j As Long,

Change
Set Rng = .Duplicate
to
Set Rng = .Duplicate: j = j +1

Change
Set Rng = Nothing
to
Set Rng = Nothing: MsgBox j & " documents created", vbInformation
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
count new files, split at heading level, split document



Similar Threads
Thread Thread Starter Forum Replies Last Post
Addition to Split Document Code (by Macropod) Adapting Macropod's Acronym Word VBA Code for Excel scienceguy Excel Programming 3 11-20-2021 06:59 AM
Addition to Split Document Code (by Macropod) split word document based on bookmarks with each new document title of the bookmark megatronixs Word VBA 9 09-05-2020 02:29 PM
Addition to Split Document Code (by Macropod) 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
Pizza Tips - Simple Addition In Word Document StephenRay Word VBA 8 09-12-2017 07:13 AM
Addition to Split Document Code (by Macropod) How do I see one document map for each half of a split MS WORD 2010 document? quickwin Word 3 07-09-2013 10:20 PM

Other Forums: Access Forums

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