Creating a template that has a macro to select several different footers

  • Thread starter Thread starter Bert via OfficeKB.com
  • Start date Start date
B

Bert via OfficeKB.com

I'm in the process of drafting a style for a template that will allow
different users to use a macro that will place text for their office in the
footer (return address) of the document. This macro will need to
automatically run when a file is emailed or electronically faxed to a
receiver.

I'm thinking -
after letter has been done - when you select the option to send, that a
dialog box will show to select the office name and then the footer is added
to the document when sent. Is this possible?

Thank you for your help. As always it is greatly appreciated.

Roberta
 
Hi Roberta

First, I suggest that you insert the text when the document is created, and
check that it's still there when it's emailed or faxed. This is because some
users get upset when they can't see what the final document is going to look
like. All the time they're working on it, they have to take on trust that
your macro will insert that footer.

Second, AutoTexts will be your saviour here. Create one for each address.
Give each a name that you can display nicely in a list box in your user
form. When the user selects an item, insert the AutoText in the footer. (By
the way, Word always puts in an extra hard return; you may need to have your
code delete it if vertical positioning is crucial.)

Some resources:

How to create a Userform
http://www.word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

Using AutoText
http://www.word.mvps.org/FAQs/Customization/AutoText.htm

Post back if you need more specific help, and let us know what version of
Word you're using.

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 

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

Similar Threads


Back
Top