Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2018, 07:11 AM
eduzs eduzs is offline Save a section as individual document. Windows 10 Save a section as individual document. Office 2010 32bit
Expert
Save a section as individual document.
 
Join Date: May 2017
Posts: 260
eduzs is on a distinguished road
Default Save a section as individual document.

Hi all,
I need a vba code to save a specific section of a word document to a individual document.


Any ideas how to do this?
Thanks
Reply With Quote
  #2  
Old 10-29-2018, 07:35 AM
gmaxey gmaxey is offline Save a section as individual document. Windows 7 32bit Save a section as individual document. Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,422
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

You start with something like:

Sub ThisIsWhatIWantToDo()

End Sub

... put the required steps between. This is not a code writing service. Basically your steps will include add a new document and set the range of that document equal to the range of the source section. If your documents have headers and footers it would take more steps. There are plenty of examples in this and other forums.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Save a section as individual document. Compatibility of 2 macros in mail merge: Delete table rows + save individual PDFs Btop Word VBA 26 03-07-2018 01:45 PM
Save a section as individual document. VBA code to save to individual files and skipif function beefcake2000 Mail Merge 2 12-05-2017 03:19 AM
Save a section as individual document. Help debugging a Macro that merges individual word docs into one document vincenzo345 Word VBA 4 12-01-2017 11:25 AM
Save a section as individual document. Save mailmerge records as individual word files using VBA beefcake2000 Word VBA 3 11-10-2017 09:55 PM
Macro to export document sections to individual txt files? MJMR999 Excel Programming 0 02-18-2010 12:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft