![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Hi,
I have written a lot of VBA code in Excel and make use of Office Automation to create and send mails from Excel (Excel & Outlook 2003). All is working fine, except from 2 things that I would like to improve. - How can I change the font of the mail body with VBA? - How can I include a signature to the body with VBA? Pretty sure that this must be possible. I would be grateful if someone could help me on this. Wkr, JP |
#2
|
|||
|
|||
![]() 1) That's possible if the email is in html format. Look for an html help, which explains how to change font size, name, etc. You can use either html tags for that or css. 2) By default, all the signature files are stored he C:\Documents and Settings\[user]\Application Data\Microsoft\Signatures You can read a file, for instance with the Scripting Library (add a reference to it via Tools/References), and insert the stuff it into the email. -- Best regards Michael Bauer - MVP Outlook : Outlook Categories? Category Manager Is Your Tool : VBOffice Reporter for Data Analysis & Reporting : http://www.vboffice.net/product.html?pub=6&lang=en Am Sun, 18 Oct 2009 16:08:38 +0200 schrieb JP Ronse: Hi, I have written a lot of VBA code in Excel and make use of Office Automation to create and send mails from Excel (Excel & Outlook 2003). All is working fine, except from 2 things that I would like to improve. - How can I change the font of the mail body with VBA? - How can I include a signature to the body with VBA? Pretty sure that this must be possible. I would be grateful if someone could help me on this. Wkr, JP |
#3
|
|||
|
|||
![]()
Hi Michael,
Thanks for the reply, I'll give it a try. Wkr, JP "Michael Bauer [MVP - Outlook]" wrote in message ... 1) That's possible if the email is in html format. Look for an html help, which explains how to change font size, name, etc. You can use either html tags for that or css. 2) By default, all the signature files are stored he C:\Documents and Settings\[user]\Application Data\Microsoft\Signatures You can read a file, for instance with the Scripting Library (add a reference to it via Tools/References), and insert the stuff it into the email. -- Best regards Michael Bauer - MVP Outlook : Outlook Categories? Category Manager Is Your Tool : VBOffice Reporter for Data Analysis & Reporting : http://www.vboffice.net/product.html?pub=6&lang=en Am Sun, 18 Oct 2009 16:08:38 +0200 schrieb JP Ronse: Hi, I have written a lot of VBA code in Excel and make use of Office Automation to create and send mails from Excel (Excel & Outlook 2003). All is working fine, except from 2 things that I would like to improve. - How can I change the font of the mail body with VBA? - How can I include a signature to the body with VBA? Pretty sure that this must be possible. I would be grateful if someone could help me on this. Wkr, JP |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help with setting font size and style | ECLiPSE 2002 | Outlook Express | 4 | February 22nd 09 02:49 PM |
Outlook Email default font setting | Scot | Outlook - Installation | 0 | March 26th 08 12:37 PM |
Setting the font of the message body | Vaelek | Add-ins for Outlook | 3 | December 6th 07 09:08 PM |
OWA - Setting default font | ColinMcD | Outlook - Installation | 0 | January 8th 07 01:08 PM |
Setting Font Problem? | Ben | Outlook and VBA | 0 | December 7th 06 04:58 PM |