Insert a text box using a macro

J

Jay Freedman

PJY said:
I am using Word 2003 and would like to create a macro to insert a
text box.

It would help to know what kind of text box, where you want it, how big you
want it, and what you want to put in it... and why the Insert > Text Box
command isn't sufficient (for example, is this part of a larger macro?). It
would probably also be helpful, but not essential, to move this post to the
microsoft.public.word.vba.beginners newsgroup, where it would be on topic.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
G

Guest

What I'm trying to do is create a macro for landscape pages that would mirror
my headers and footers in portrait. The text box I want to use is the normal
text box found on the drawing toolbar. I want the footer to be placed in the
header (Absolute position horizontal -0.46 to the right of column and absulte
position 0.16 to the right of column) What would be in the text boxes would
be the page number for one and the job no., month & year for the other.
Insert text box is fine, however, more time consuming than it needs to be if
I could create a macro instead.
 
G

Guest

Thank you for your website but I'm already aware of how to format on
landscape pages. Why would I use autotext?
 
S

Suzanne S. Barnhill

Because saving the header/footer as an AutoText entry would allow you to
just select it from the AutoText menu on the Header and Footer toolbar,
which is simpler than writing and running a macro. See
http://word.mvps.org/FAQs/Customization/AutoText.htm

An example of a similar use of AutoText is provided at
http://sbarnhill.mvps.org/WordFAQs/CropMarks.htm.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
G

Guest

Thank you for trying to help me, but it is clear in your answer you do not
understand what I want to do. Sorry I haven't explained myself well enough. I
did write the macro this AM though and it is working perfectly.
 
S

Suzanne S. Barnhill

As described, you want to put a portrait header in a specific position on a
landscape page, using a text box. It is no trouble at all to put a PAGE
field in one box; in the other you could use a DocProperty field for the job
number and a CreateDate (or other Date) field. In fact, you could probably
do it in a single text box. If you prefer to use a macro to do this, so be
it, but unless you have inaccurately described what you want to do, an
AutoText entry would do it quite satisfactorily.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top