
Insert a new (numbered) paragraph with formfields
Hi Cindy,
Thanks for your reply!
See below...
Quote:
> Hi Gijs,
> > Does anyone know a method to let a user insert a new formatted
paragraph,
> > with some formfields in it, in a protected form.
> I create such "elements" as AutoText entries. The user clicks a toolbar
> button, a macro unprotects, positions, inserts the AutoText entry, renames
> the form fields (if necessary), reprotects.
> You propose the same approach, so apparently this isn't really your
> question. What's your question?
So my approach is OK... The problem I have is that the new paragraph seems
to be inserted into the last formfield. Ofcourse it should be in a new
paragraph. Somehow I can't get it done.
So the problem seems to be to create a new paragraph to insert the autotext
in.
I first tried to create a new paragraph with:
Selection.TypeParagraph
Then I read something about collapse and added next lines:
Set myRange = ActiveDocument.Paragraphs(1).Range
myRange.Collapse Direction:=wdCollapseEnd
Then I tried with adding next:
With Selection
.Move Unit:=wdParagraph
.InsertParagraphAfter
.Collapse Direction:=wdCollapseStart
End With
I believe I tried all combinations of above, but still something went wrong
in creating a new paragraph with numbering.
Bye,
Gijs
Quote:
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister
> http://www.mvps.org/word
> http://go.compuserve.com/MSOfficeForum
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)