Re: Creating individual forms using templates

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Cindy M -WordMVP- (C.Meister-C_at_hispeed.ch)
Date: 06/05/04


Date: Sat, 05 Jun 2004 22:24:30 +0200

Hi =?Utf-8?B?SmFzb24=?=,

> I created a template as a substitute for a form in access. I am filling in data
properly, but my goal is to make multiple one page forms (like access does) in one
document. currently i have just placed a couple bookmarks to insert a page break, then
inserted the template file again. As this happens, there is more and more of a gap at
the top of the page, the bookmarks don't transfer, and there is always an extra page at
the end.
>
This can be tricky, indeed. Some thoughts:

1. Don't use manual page breaks. Instead, format the first paragraph with "Page break
before" and store that in the AutoText

2. Since you need the form field names (bookmarks), you're going to need to rename the
form fields. Usually, what I do is increment the names with a number each time I insert a
new repeating element. You can keep track of the number (in a document VARIABLE, for
example) and include that in the code that writes the data from Access into Word
(doc.Formfields("baseName" & CStr(counter)))

3. Try to avoid using Select and Selection; work with the object model as much as
possible (which usually means with Ranges).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply in the
newsgroup and not by e-mail :-)



Relevant Pages

  • Re: Automatic update of calculation fields in a protected form
    ... > "calculate on exit," not that you insert additional bookmarks. ... > Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... > This message is posted to a newsgroup. ...
    (microsoft.public.word.tables)
  • Re: Linking Many Tables To A Master Document
    ... Please reply to the newsgroup unless you wish to avail yourself of my ... I suspected that autonumbering of bookmarks was possible, ... > other words, when I run this third-party program, its output is a Word ... > to an Excel file and then creating links to the master document using ...
    (microsoft.public.word.tables)
  • Re: How do I set up a tab order without a macro?
    ... have a lot of fields to be creating that many bookmarks. ... Well, each form field is a bookmark, so you wouldn't be creating bookmarks... ... it's possible to work with the text flow - no macros required. ... This reply is posted in the Newsgroup; please post any follow question or reply ...
    (microsoft.public.word.docmanagement)
  • Re: Type once, use data in multiple ways
    ... Put bookmarks in the Word document, ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... This message is posted to a newsgroup. ... "Charles Kenyon" wrote: ...
    (microsoft.public.word.docmanagement)
  • Re: Creating individual forms using templates
    ... > I created a template as a substitute for a form in access. ... but my goal is to make multiple one page forms in one ... the top of the page, the bookmarks don't transfer, and there is always an extra page at ... Since you need the form field names, you're going to need to rename the ...
    (microsoft.public.word.vba.general)