Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2012, 08:25 PM
mlbliss mlbliss is offline Programatically Managing Word Document Structure Windows 7 64bit Programatically Managing Word Document Structure Office 2007
Novice
Programatically Managing Word Document Structure
 
Join Date: Nov 2012
Posts: 2
mlbliss is on a distinguished road
Default Programatically Managing Word Document Structure


I need to build an application (can be VBA or other) that meets these criteria:

1. Understand Word document sections & sub-sections (ie. multi-level nesting of portions of the document). These will be defined in the 'original' version of the document.
2. Interpret a user-modified version of the original document, where:
a. the user may have edited the content of a section
b. the user may have added a new section
The assumption will be that Track Changes & password protection will be enabled when the original is sent out to the users. I have looked at these options but none are ideal:

1. Styles: each section heading would be given a style. The problem with this is the Style can't be protected unless it is completely removed. It also can't act as a unique section identifier (as numbering can be changed).
2. Section breaks: this does not allo applicaiton to buil a two-dimensional view of the document structure.

Ideally, what I want is some way to insert hidden reference tags throughout the document, that can't be deleted but that can be read by the application.

Does anyone know of such a feature in Word/VBA?
Reply With Quote
  #2  
Old 11-07-2012, 05:18 PM
macropod's Avatar
macropod macropod is offline Programatically Managing Word Document Structure Windows 7 64bit Programatically Managing Word Document Structure Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,382
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

Styles do not apply to Sections. They can be applied to Tables, Paragraphs and Characters only.

When you apply formatting restrictions, only the approved Styles can be used. Hard-formatting and Style changes are not allowed. Of course, you can't force a user to use a given Style appropriately, but that's a different issue.

I don't understand your contention re Section breaks and document structure, which should in any event be defined via the proper use of Styles.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 11-07-2012, 07:05 PM
mlbliss mlbliss is offline Programatically Managing Word Document Structure Windows 7 64bit Programatically Managing Word Document Structure Office 2007
Novice
Programatically Managing Word Document Structure
 
Join Date: Nov 2012
Posts: 2
mlbliss is on a distinguished road
Default

Thanks Paul, that’s very helpful. If you're confirming that document structure should be defined via the proper use of Styles, then what I need to achieve additionally is:

1. Password Protect the document enabling track changes
2. Only allow 3rd party to modify normal/body text in the document, but not change headings (ie. certain styles) as this will modify the document structure.

Is that possible? I tried removing the heading styles from the list under 'Limit formatting to a selection of styles', however this completely removed the style from the underlying document which is not what I wanted to achieve.
Reply With Quote
  #4  
Old 11-07-2012, 07:42 PM
macropod's Avatar
macropod macropod is offline Programatically Managing Word Document Structure Windows 7 64bit Programatically Managing Word Document Structure Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,382
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

If you:
• apply formatting (style) restrictions;
• define a new Section and configure it with your default heading/content arrangement; and
• create a custom Quick Part for the new 'Section', including both its preceding Section break and the paragraph break immediately before that;
you can combine that with editing restrictions throughout the rest of the document, so that users can only edit portions you intent them to (eg if you don't include paragraph breaks in the allowable edits, they can delete a heading's content, but not the paragraph itself, which kind of defeats their content deletion efforts).
Any new Section they insert via Quick Parts will be entirely editable, but at least they can't mess with the basics.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Programatically Managing Word Document Structure Apply font color programatically using VBA Word divakarganta Word VBA 3 08-08-2012 08:05 PM
Programatically Managing Word Document Structure Managing styles in a document Tango Mike Word 3 06-21-2012 10:16 PM
Generate tree structure, tool? Troddel PowerPoint 0 10-13-2010 11:41 PM
How to add more tel nos to contacts structure plainman007 Outlook 0 03-16-2010 02:16 PM
Programatically open Outlook folder (set focus) using RDO? NicMic Outlook 0 01-10-2008 03:27 PM

Other Forums: Access Forums

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