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

Outlook CBA changing Fonts



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 8th 08, 03:23 PM posted to microsoft.public.outlook.program_vba
Sean McPoland[_2_]
external usenet poster
 
Posts: 1
Default Outlook CBA changing Fonts

Hi all,

I have an extremely simple macro as follows:

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If Item.Class olMail Then Exit Sub
Item.Body = Replace(Item.Body, "My N ame" & vbCrLf, "My Name, CISA" & vbCrLf)
End Sub

However: when it executes it changes the MESSAGE PARAGRAPH FONT and
CHARACTER Size from what I have it set as (Verdana 10) to Calibri 12.

This shouldn't happen!

Can anyone help please...

Many thanks in advance,
Sean
Ads
  #2  
Old November 8th 08, 06:37 PM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Outlook CBA changing Fonts



If that's an html formatted e-mail, you need to write into the HTMLBody
property, and use html tags.

--
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 Sat, 8 Nov 2008 06:23:03 -0800 schrieb Sean McPoland:

Hi all,

I have an extremely simple macro as follows:

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If Item.Class olMail Then Exit Sub
Item.Body = Replace(Item.Body, "My N ame" & vbCrLf, "My Name, CISA" &

vbCrLf)
End Sub

However: when it executes it changes the MESSAGE PARAGRAPH FONT and
CHARACTER Size from what I have it set as (Verdana 10) to Calibri 12.

This shouldn't happen!

Can anyone help please...

Many thanks in advance,
Sean

 




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
changing the fonts in outlook 2007 dwjones45 Outlook - General Queries 1 October 20th 08 05:57 AM
Trouble Changing Fonts bobbymac Outlook Express 2 July 16th 06 09:59 PM
fonts keep changing in Outlook Express Michael Mauzey Outlook Express 3 July 16th 06 02:55 PM
Outlook / Office 07 changing the fonts? Andrew Wiseman Outlook - General Queries 3 June 7th 06 10:24 PM
Changing outlook reading panel fonts news.tpg.com.au Outlook - General Queries 1 April 24th 06 02:37 PM


All times are GMT +1. The time now is 12:54 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.