Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-05-2012, 07:52 AM
matthewgeary matthewgeary is offline Creating new document from parts of another document Windows 7 32bit Creating new document from parts of another document Office 2007
Novice
Creating new document from parts of another document
 
Join Date: Oct 2012
Posts: 1
matthewgeary is on a distinguished road
Default Creating new document from parts of another document

Hi all,



I'm looking to create a macro to help streamline a process at work. We have a long (like 600 page) document of rules and regulations. Very frequently, we have to make an abbreviated version of this document where we only pick certain sections.

I'd like this macro to, when I click on the table of contents entry for that section, copy that section and paste it into another document (or even just copy it formatted to the clipboard).

I'll tell you that I'm very new to macros and VBA in general, but any help would be appreciated.

Thanks!
Matt
Reply With Quote
  #2  
Old 10-05-2012, 10:09 AM
macropod's Avatar
macropod macropod is offline Creating new document from parts of another document Windows 7 64bit Creating new document from parts of another document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Hi Matt,

Word doesn't have an event you can intercept for that kind of thing, so you'd have to navigate to the relevant portion, then start copying. The problem then become one of determining how much to copy.

You refer to 'section', but the only sections Word knows about are those created via Section breaks. And a logical section of a document might have none, one or more of those.

So that leaves you to work with headings. But even if you're using heading Styles, there are issues that need to be considered. For example, if you choose something with a heading at, say, level 2, how is Word to determine how much to copy? Does it continue till the next Heading 2, or stop at, the first heading 2 below it?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Quick Parts with the document derohanes Word 4 10-23-2013 09:30 PM
Creating new document from parts of another document Adding and Moving parts of a document in Word PauledInAction Word 4 07-13-2012 02:38 PM
Creating new document from parts of another document Can you prevent parts of a Word document from printing? mgp69 Word 4 04-04-2012 02:12 PM
Creating a new template for existing document? Stephen0352 Word 6 09-12-2011 09:00 AM
Creating a special Document darka5sa5sin Word 0 02-06-2009 11:23 AM

Other Forums: Access Forums

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