View Single Post
 
Old 04-24-2012, 01:26 PM
sleake sleake is offline Windows XP Office 2007
Advanced Beginner
 
Join Date: Jul 2011
Posts: 60
sleake is on a distinguished road
Default Code to Create & Format Document Sections

I am working on a template for our project authors to enable them to “build” a document as they create it.

Background
I developed QAT with a number of building blocks to insert captions (for body and appendices), custom headers and footers for different orientations, custom tables, and tables of contents with and without appendices.

I added Word tools for insert section, orientation, page number format, linking/unlinking header/footer to previous, but using these tools may be too much for our novice authors. I tried using auto text to pre-format various sections, and recording a macro, and neither worked successfully.

The Question
I’d like to use a form that runs a VB procedure triggered by choices the authors make on the form. (I created the form in VB, but am not sure where to go from here.) Here’s the form structure.

Document Part (Body or Appendix)
Orientation (Portrait or Landscape)
Page Numbering (New Section or Continue from previous)

There are 8 possible choices:
Body-Portrait-New Section
Body-Portrait-Continue from previous
Body-Landscape-New Section
Body-Landscape- Continue from previous

Appendix-Portrait-New Section
Appendix -Portrait- Continue from previous
Appendix -Landscape-New Section
Appendix -Landscape- Continue from previous

I'm attaching a scheme I wrote for recording macros that will describe in more detail what I want to do. (I couldn't attach the template -- I see templates are not among the valid extensions.) I'd be grateful for any help you can provide or resources you can point me to.
Attached Files
File Type: doc Template Macro Schema (03-11-12).doc (38.5 KB, 15 views)
Reply With Quote