An Outlook-style "Insert/Signature": improving my solution

N

natasha

Hello everybody,
I wanted to add to Office XP an "Insert/Signature" voice.
I wrote a simple VBA sub to insert a signature at the end of document and,
of course, to add a menu entry to call it is a trivial task.
But, I'd like to develop a TRUE solution: that is, adding a "Signature" tab
in "Tools/Options", saving signatures on a .txt file, and dinamically adding
subvoices to "Insert/Signature", populated by .txt files, letting user choose
if to insert Signature1, Signature2,...., and so on, depending how much
signatures they've been defined in "Signature" tab of "Tools/Options".
Not so difficult read/write from text files, but how to perform other
requirements?
 
J

Jay Freedman

Hello everybody,
I wanted to add to Office XP an "Insert/Signature" voice.
I wrote a simple VBA sub to insert a signature at the end of document and,
of course, to add a menu entry to call it is a trivial task.
But, I'd like to develop a TRUE solution: that is, adding a "Signature" tab
in "Tools/Options", saving signatures on a .txt file, and dinamically adding
subvoices to "Insert/Signature", populated by .txt files, letting user choose
if to insert Signature1, Signature2,...., and so on, depending how much
signatures they've been defined in "Signature" tab of "Tools/Options".
Not so difficult read/write from text files, but how to perform other
requirements?

For starters, you can't add any tabs to the Tools/Options dialog. You
could create a UserForm that could be called by a toolbar button or
menu item: http://www.word.mvps.org/FAQs/Userforms/CreateAUserForm.htm
but it would be separate from Tools/Options.

There's already a better solution, though: Store all your signatures
as AutoText entries
(http://www.word.mvps.org/FAQs/Customization/AutoText.htm) in the
template used to base your letters. If you apply the Signature
paragraph style to each one before you store it, they'll all be listed
in the Signature category in the Insert > AutoText menu. You can also
type the unique part of the name of a signature (at least 4
characters) and press F3 to insert it. This also has the advantage
over text file storage that the signatures can contain formatting.

--
Regards,
Jay Freedman
Microsoft Word MVP
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