Re: A form for inserting items into a document

From: Doug Robbins - Word MVP (dkr_at_NOmvpsSPAM.org)
Date: 04/28/04


Date: Wed, 28 Apr 2004 12:37:44 +1000

Some of them are possible with a UserForm

See the article "How to create a Userform" at:

http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

-- 
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested.  Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
"Vincent Boris Arnold" <anonymous@discussions.microsoft.com> wrote in
message news:509a01c42c75$9ef7c410$a101280a@phx.gbl...
> I've got an idea for a form and I'd like to know whether
> these characteristics are possible.
>
> This form would be used to add items to a Word document
> being used for documentation. The form would have controls
> that could be clicked on to add certain text to the
> document. For example, if the form had a "History" button,
> the user could click on that button and a subroutine would
> add the title "History" to the document in the appropriate
> place with a pre-defined style, then position the cursor
> below that heading line so the user could type appropriate
> historical text. Once "History" has been added to the
> document, its control would be grayed out so another
> History section could not be added.
>
> Some sections of the document may have sub-sections. So,
> for instance, the History section mentioned above may have
> sub-sections that may occur multiple times. The form would
> have a control that would allow one of these occurrences
> to be added at the appropriate place with the appropriate
> style. The control may additionally present a dialog box
> prompting for information that must be present in the sub-
> section (e.g., the date, the responsible party, etc.).
> These entered values would then be transferred by the
> macro to the document.
>
> Some other characteristics I'd like for this form are:
> - Positioning the form in a fixed position. For example,
> the document window and the form window would be tiled in
> such a way that the document window consumes the left 80%
> of the screen and the form the right 20% of the screen.
> The layout of these windows would be taken care of
> automatically every time the template in which the macro
> is defined is used.
> - Having the form "follow" the document as the user
> scrolls through the document. In other words, the form
> would be kind of like an outline of all the items that can
> be inserted into the document, in the desired sequence.
> Because the number of sections and items in the form would
> likely not all fit in the form simultaneously, there would
> be a scroll bar for repositioning the form to correspond
> to where the user was in the document. What would be ideal
> is that as the user scrolls down through the pages of the
> document, the form would automatically be scrolled so that
> the items on the form correspond to where the user is in
> the document. The reverse would be true as well: When the
> user scrolls through the form, the document would
> automatically be scrolled accordingly.
>
> I know this is a tall order. Are any of these ideas
> possible?