Drag the anchors to the first paragraph, then lock the anchors. As long as
the first paragraph is not deleted, your textboxes will remain present and
in place.
> Thanks Jezebel. I cannot set the empty text boxes to the header and footer
> as it will make it too difficult for the template users to put anything in
[quoted text clipped - 64 lines]
>>>
>>> Sol
Hi Jezebel
I know how drag anchors manually, but the textboxes are inserted by macro.
They are not on the template or the document until the user clicks on a
toolbar button for a ³top left² text box, or a ³middle right² text box, etc.
What I don¹t know is the code for positioning a text box on the top
paragraph of a page so I can put this code into each relevant macro, and I
haven¹t been able to find it searching through VB help (Mac) or through
various VB newsgroups.
Thx
Sol
On 5/12/06 16:21, in article u2pNnlIGHHA.536@TK2MSFTNGP02.phx.gbl, "Jezebel"
<warcrimes@whitehouse.gov> wrote:
> Drag the anchors to the first paragraph, then lock the anchors. As long as
> the first paragraph is not deleted, your textboxes will remain present and
[quoted text clipped - 68 lines]
>>>>
>>>> Sol
Cindy M. - 06 Dec 2006 16:26 GMT
Hi Sol,
> What I don¹t know is the code for positioning a text box on the top
> paragraph of a page so I can put this code into each relevant macro, and I
> haven¹t been able to find it searching through VB help (Mac) or through
> various VB newsgroups.
Make sure the current selection is on the page in question. then
Dim rng as Word.Range
Dim rngPara as Word.range
Set rng = ActiveDocument.Bookmarks("\Page").Range
Set rngPara = rng.Paragraphs(1).Range
But you want to test this with paragraphs that break across pages, as these
might throw off the result, depending on what result you need. You may need,
in addition, to check whether the first and last characters in the paragraph
range are on the same page.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :-)