Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Absolute page position in MS Word

Status
Not open for further replies.

EllyBelly

Programmer
Nov 6, 2003
1
CA
Hi All

I do a lot of VBA macros in Word and constantly need to position text, pictures, textboxes etc at specific locations on the page.

Is there anything in the Word object model that provides something like "absolute x,y" position on the page. I know that some classes have positions but what about plain old text?

For example, I need to create a macro that will expand a series of one line paragraphs to form a box with precisely controlled left and right edges. Justify only works for paragraphs with many lines. The paragraphs in the example only have one line each. I need the macro to use left and right edge positions so that the macro knows when to stop adding points between the chars when the edges exactly line up.

By the way, the text in questions is in a textbox.

Any suggestions will be appreciated

EllyBelly




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top