I
Ian
Using Word 97.
I want to build a template that contains several bookmarks, created with
SET statements. When using the template, the user will supply a custom
document property (e.g. "choice") specifying which bookmark to include
in the document. E.g.:
~~~~~~~~~~~~~~~~~~~~~~~~
SET {bookmark1 "first block of many pages of text"}
SET {bookmark2 "second block of many pages of text"}
{IF {DOCPROPERTY choice}=1 {bookmark1} {bookmark2}}
~~~~~~~~~~~~~~~~~~~~~~~~
If "choice" = 1, then the first multi-page block of text is inserted,
otherwise the second block. Once the chosen block is inserted, the user
is then free to edit it.
This works fine. However, I am very concerned that when users start
editing, they may accidentally delete the (invisible) SET statements,
thus generating "bookmark undefined" errors.
Is there any way I can protect the SET statements so that users can't
delete them?
Or is there a better way of defining alternative blocks of text for
editing?
I want to build a template that contains several bookmarks, created with
SET statements. When using the template, the user will supply a custom
document property (e.g. "choice") specifying which bookmark to include
in the document. E.g.:
~~~~~~~~~~~~~~~~~~~~~~~~
SET {bookmark1 "first block of many pages of text"}
SET {bookmark2 "second block of many pages of text"}
{IF {DOCPROPERTY choice}=1 {bookmark1} {bookmark2}}
~~~~~~~~~~~~~~~~~~~~~~~~
If "choice" = 1, then the first multi-page block of text is inserted,
otherwise the second block. Once the chosen block is inserted, the user
is then free to edit it.
This works fine. However, I am very concerned that when users start
editing, they may accidentally delete the (invisible) SET statements,
thus generating "bookmark undefined" errors.
Is there any way I can protect the SET statements so that users can't
delete them?
Or is there a better way of defining alternative blocks of text for
editing?