A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Font setting of mail



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 18th 09, 03:08 PM posted to microsoft.public.outlook.program_vba
JP Ronse
external usenet poster
 
Posts: 19
Default Font setting of mail

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  
Old October 19th 09, 08:35 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Font setting of mail



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  
Old October 19th 09, 02:46 PM posted to microsoft.public.outlook.program_vba
JP Ronse
external usenet poster
 
Posts: 19
Default Font setting of mail

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 03:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.