Multiple stationeries

J

John

Hi

We have three divisions in the company and need different stationery for
each of them. Outlook, as far as I can see, only supports one stationery at
a time. Is there a way to create three stationeries as html files and then
load them somehow, may be via vba code, using buttons on toolbar? Is there a
better way?

Thanks

Regards
 
G

Guest

If you create three .html files and store them in the C:\Program Files\Common
Files\Microsoft Shared\Stationery directory, they will be accessible from
within the stationery chooser.
 
J

John

I would like to make the selection easier for the user. Possibly by adding
three macros that run when one of the three buttons on toolbar are pressed,
opening one of the three html templates as needed. If I know the vba code to
create a new email from an html template then I think I should be OK.

Regards
 
G

Guest

This is usually a matter of just reading the contents of the .html files in
that Stationery folder, and passing the string to the MailItem.HTMLBody
property.

I've got some sample code that you can download in my blog entry linked
below that could give you some ideas:

Applying Outlook Stationery to more than just new messages:
http://blogs.officezealot.com/legault/archive/2005/07/21/7581.aspx

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/
 
J

John

It runs fine but I can't seems to find an option to access this form in
design mode to modify.

Regards
 
G

Guest

You should be able to. I'll repeat the complete steps in case you missed
something:

- to import the .frm file, open the Outlook VBA Editor (ALT+F11)
- choose File -> Import File...
- browse to the .frm file
- open the Project Explorer (View -> Project Explorer)
- double-click the form in the list to open in design mode

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/
 
J

John

Thanks Eirc. Works great. Except does not copy any text from the html
stationery. Anyway it can copy text too?

Thanks

Regards

Eric Legault said:
You should be able to. I'll repeat the complete steps in case you missed
something:

- to import the .frm file, open the Outlook VBA Editor (ALT+F11)
- choose File -> Import File...
- browse to the .frm file
- open the Project Explorer (View -> Project Explorer)
- double-click the form in the list to open in design mode

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


John said:
It runs fine but I can't seems to find an option to access this form in
design mode to modify.

Regards

Eric Legault said:
Do you mean the .frm file in the zip file containing the source code
from
my
blog? Just import it into your Visual Basic Project in the Outlook VBA
Editor.

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


:

Eric thanks for that. How can I change the form if I want to?

Thanks

Regards

in
message This is usually a matter of just reading the contents of the .html
files
in
that Stationery folder, and passing the string to the
MailItem.HTMLBody
property.

I've got some sample code that you can download in my blog entry
linked
below that could give you some ideas:

Applying Outlook Stationery to more than just new messages:
http://blogs.officezealot.com/legault/archive/2005/07/21/7581.aspx

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


:

I would like to make the selection easier for the user. Possibly by
adding
three macros that run when one of the three buttons on toolbar are
pressed,
opening one of the three html templates as needed. If I know the
vba
code
to
create a new email from an html template then I think I should be
OK.

Regards

"Eric Legault [MVP - Outlook]" <[email protected]>
wrote
in
message If you create three .html files and store them in the C:\Program
Files\Common
Files\Microsoft Shared\Stationery directory, they will be
accessible
from
within the stationery chooser.

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


:

Hi

We have three divisions in the company and need different
stationery
for
each of them. Outlook, as far as I can see, only supports one
stationery
at
a time. Is there a way to create three stationeries as html
files
and
then
load them somehow, may be via vba code, using buttons on
toolbar?
Is
there a
better way?

Thanks

Regards
 
G

Guest

You're right, it doesn't copy text. I never thought of using stationery that
way. You can easily modify the code yourself to read in the text, possibly
by looking for <font> or <H#> tags. Otherwise, using signatures may be an
alternate approach.

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


John said:
Thanks Eirc. Works great. Except does not copy any text from the html
stationery. Anyway it can copy text too?

Thanks

Regards

Eric Legault said:
You should be able to. I'll repeat the complete steps in case you missed
something:

- to import the .frm file, open the Outlook VBA Editor (ALT+F11)
- choose File -> Import File...
- browse to the .frm file
- open the Project Explorer (View -> Project Explorer)
- double-click the form in the list to open in design mode

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


John said:
It runs fine but I can't seems to find an option to access this form in
design mode to modify.

Regards

message Do you mean the .frm file in the zip file containing the source code
from
my
blog? Just import it into your Visual Basic Project in the Outlook VBA
Editor.

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


:

Eric thanks for that. How can I change the form if I want to?

Thanks

Regards

in
message This is usually a matter of just reading the contents of the .html
files
in
that Stationery folder, and passing the string to the
MailItem.HTMLBody
property.

I've got some sample code that you can download in my blog entry
linked
below that could give you some ideas:

Applying Outlook Stationery to more than just new messages:
http://blogs.officezealot.com/legault/archive/2005/07/21/7581.aspx

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


:

I would like to make the selection easier for the user. Possibly by
adding
three macros that run when one of the three buttons on toolbar are
pressed,
opening one of the three html templates as needed. If I know the
vba
code
to
create a new email from an html template then I think I should be
OK.

Regards

"Eric Legault [MVP - Outlook]" <[email protected]>
wrote
in
message If you create three .html files and store them in the C:\Program
Files\Common
Files\Microsoft Shared\Stationery directory, they will be
accessible
from
within the stationery chooser.

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


:

Hi

We have three divisions in the company and need different
stationery
for
each of them. Outlook, as far as I can see, only supports one
stationery
at
a time. Is there a way to create three stationeries as html
files
and
then
load them somehow, may be via vba code, using buttons on
toolbar?
Is
there a
better way?

Thanks

Regards
 

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