Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
PJY PJY is offline
external usenet poster
 
Posts: 306
Default Insert a text box using a macro

I am using Word 2003 and would like to create a macro to insert a text box.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Insert a text box using a macro

PJY wrote:
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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
PJY PJY is offline
external usenet poster
 
Posts: 306
Default Insert a text box using a macro

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.

"Jay Freedman" wrote:

PJY wrote:
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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.



  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Insert a text box using a macro

See http://word.mvps.org/FAQs/Formatting...apeSection.htm for
suggestions. And instead of a macro, save your header/footer as an AutoText
entry.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"PJY" wrote in message
...
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.

"Jay Freedman" wrote:

PJY wrote:
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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the

newsgroup so
all may benefit.




  #5   Report Post  
Posted to microsoft.public.word.docmanagement
PJY PJY is offline
external usenet poster
 
Posts: 306
Default Insert a text box using a macro

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

"Suzanne S. Barnhill" wrote:

See http://word.mvps.org/FAQs/Formatting...apeSection.htm for
suggestions. And instead of a macro, save your header/footer as an AutoText
entry.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"PJY" wrote in message
...
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.

"Jay Freedman" wrote:

PJY wrote:
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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the

newsgroup so
all may benefit.







  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Insert a text box using a macro

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
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

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

"Suzanne S. Barnhill" wrote:

See http://word.mvps.org/FAQs/Formatting...apeSection.htm for
suggestions. And instead of a macro, save your header/footer as an

AutoText
entry.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the

newsgroup so
all may benefit.

"PJY" wrote in message
...
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.

"Jay Freedman" wrote:

PJY wrote:
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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the

newsgroup so
all may benefit.






  #7   Report Post  
Posted to microsoft.public.word.docmanagement
PJY PJY is offline
external usenet poster
 
Posts: 306
Default Insert a text box using a macro

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.

"Suzanne S. Barnhill" wrote:

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
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

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

"Suzanne S. Barnhill" wrote:

See http://word.mvps.org/FAQs/Formatting...apeSection.htm for
suggestions. And instead of a macro, save your header/footer as an

AutoText
entry.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the

newsgroup so
all may benefit.

"PJY" wrote in message
...
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.

"Jay Freedman" wrote:

PJY wrote:
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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so
all may benefit.







  #8   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Insert a text box using a macro

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
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"PJY" wrote in message
...
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.

"Suzanne S. Barnhill" wrote:

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
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the

newsgroup so
all may benefit.

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

"Suzanne S. Barnhill" wrote:

See http://word.mvps.org/FAQs/Formatting...apeSection.htm for
suggestions. And instead of a macro, save your header/footer as an

AutoText
entry.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the

newsgroup so
all may benefit.

"PJY" wrote in message
...
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.

"Jay Freedman" wrote:

PJY wrote:
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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so
all may benefit.








Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert macro date Chris Microsoft Word Help 1 July 13th 07 09:21 AM
macro to insert text in form beverlydawn Microsoft Word Help 3 April 30th 07 07:04 PM
How do I insert a doc with a footer into another doc with a macro kpmcmullin Microsoft Word Help 8 August 21st 06 09:31 PM
How do I insert a tab in a macro? JoshMcMadMac Microsoft Word Help 10 May 15th 06 08:59 PM
Macro to insert AutoText table loses text formatting Lighthouseman Tables 4 November 18th 05 06:39 PM


All times are GMT +1. The time now is 04:09 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"