View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Phil1357
 
Posts: n/a
Default Line numbers in a template (.dot) file

I tried various numbered styles, with the same result.

I have succeeded in creating a macro that works as soon as I enter the
field. I built it by pressing 'home' | shift 'end' | Format | Bullets and
Numbering | [1. 2. 3.] | Customize | [the indentation I wanted]. After I
assign the macro to Properties of the text form field and relock the form, a
list pasted into that field numbers correctly, but inserts the list before
the field, thus leaving the empty field showing as a small highlighed area
after the last entry in the list. I don't now recall whether I was
successful in deleting that field, but it is a minor issue.

When I return to work Monday, I will try to determine why, last week, a
macro I had applied on exiting the field did not work for the two users who
tried it; presumably, this new macro will not work for them either. The
users obtain the file on our Intranet as a .dot file. I opened it and looked
for the macro; it does exist when that file is opened.

"Word Heretic" wrote:

G'day Phil1357 ,

Create a numbered style, apply that to the form field.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Phil1357 reckoned:

In a prior version of Word, I was able to create a Text Form Field in a
template file (.dot), give it a Numbering attribute from the Formatting
toolbar (or via the Format function) and then lock the document with the
Protect Form function on the Forms toolbar.

Then, when the user opened the document and pasted lines into the Text form
Field, the lines would automatically be line-numbered.

In Word 2003, only the last line of the pasted text is line-numbered (with a
'1'). Nothing I have tried, including creating a macro, has fixed the
problem.