> Hi
>
[quoted text clipped - 4 lines]
>
> Can any one help me?
Show us the bit of code where you create the textbox. Then it will be easy
to show you how to add the extra items immediately after

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
Lasse - 18 Jun 2007 07:15 GMT
' Add text box
Set s = ActiveDocument.Shapes.AddTextbox(msoTextOrientationHorizontal, 0, 0,
200, 20)
' Position
With s
.TextFrame.TextRange.InsertAfter "Inserted"
.WrapFormat.Type = wdWrapTight
.RelativeHorizontalPosition = wdRelativeHorizontalPositionPage
.Left = InchesToPoints(2.75) ' in points
.RelativeVerticalPosition = wdRelativeVerticalPositionPage
.Top = InchesToPoints(2#) ' in points
End With
Thats the code i found by searching google :-)
The reaseon is that I need to create a macro that inserts city and date into
a document at a given position. My idea was to create a textbox, insert a
bookmark in the textbox and then insert city and date at the bookmark. The
text needs to be aligned to the right side of the textbox.
> > Hi
> >
[quoted text clipped - 7 lines]
> Show us the bit of code where you create the textbox. Then it will be easy
> to show you how to add the extra items immediately after
Given that text boxes are not in the document text layer, it is difficult to
see how useful it would be to create a bookmark in it. Bookmarks in text
boxes are effectively invisible to the document.

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Hi
>
[quoted text clipped - 3 lines]
>
> Can any one help me?