Outlook script to change font format on mail sent to a specific recipient
I'm trying to learn VBA for a number of more appropriate uses, but this one is kind of an inside joke. My standard email font color is purple and the text is small and 'girly" (10 point Georgia). My warehouse manager is always picking
on me about my email font and how his 'old eyes' can't read it. Is there a way to write a script, or combine the rule that runs a script in order to change the font on emails sent to one specific person? If anyone is going to bother to write
it out for me (THANK YOU in advance btw), the font I'd like to use is 14 pt Candara in black.
This is indeed more of a joke, but it will help me learn this VBA stuff. I'm mostly using it in excel for now.
Thank you thank you thank you.
If you add the following macro to the ThisOutlookSession module, it will intercept your messages and if they are to '[email protected]' they are reformatted as requested - though frankly bold (included) looks better
Option Explicit
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim olInsp As Inspector
Dim wdDoc As Object
Dim oRng As Object
If Item.To = "[email protected]" Then
With Item
.BodyFormat = olFormatHTML
Set olInsp = .GetInspector
Set wdDoc = olInsp.WordEditor
Set oRng = wdDoc.Range
.Display
With oRng
.Font.Name = "Candara"
.Font.Bold = True
.Font.Color = &H0
.Font.Size = 14
End With
.Save
End With
End If
lbl_Exit:
Exit Sub
End Sub
Graham Mayor - Word MVP
www.gmayor.com
Similar Messages
-
Outlook paste option changed font format
Hi All,
I have an issue when I try to copy some text at MS word to outlook message (rich text). The formatting of the text was changed. And the font size is change. e.g.: The font format is Arial 10 at Word and the size will changed to Arial 11 at Outlook. I've
tried to paste as keep source formatting. But the issue still here. Can I have some settings to avoid this happen? please advise. Thanks.
Best Regards,
Samuel ChuHello Samuel,
Have you tried copying from Word and paste to a new empty email message? Will that mess up the formatting?
We can also try copying/pasting between two Outlook email messages to see the result.
Please also try copying from other program, such as PowerPoint and then pasting to Outlook. Also try copying from Word and pasting to PowerPoint.
Please let me know the result.
Regards,
Steve Fan
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Can I change the font size and/or color in mail app?
Change color: No
Change font size: In the App, No
But you can change the font size for everything in iPad: Settings > General > Text Size use slider to increase or decrease text size. -
How can you change the the font size in mail when not using the "(classic) style, particularly the column that lists all your emails (2nd column).
Change color: No
Change font size: In the App, No
But you can change the font size for everything in iPad: Settings > General > Text Size use slider to increase or decrease text size. -
Hi All,
I need to know whether it is possible to use multiple font styles in the body of an e-mail sent through a report program.
I am using the FM 'SO_DOCUMENT_REPOSITORY_MANAGER' as I want to send a document from the desktop as an e-mail attachment.
The FM 'SO_DOCUMENT_SEND_API1' does not serve the primary purpose of my requirement. So, it is eliminated.
Please suggest any method to achieve the requirement of using multiple font styles in e-mail body.
Thanks,
DawoodIf you set the document to be a HTML type, then you can use HTML scripting to set
the font.
Create send request
send_request = cl_bcs=>create_persistent( ).
Create html content:
mail_line = '.mail TBODY,{font-family:verdana;font-size:10pt;}'.
append mail_line TO mail_text.
... (your text)
Create document with type 'HTM' and provide your HTML scripting
document = cl_document_bcs=>create_document( i_type = 'HTM'
i_text = mail_text
i_subject = 'Subject' ).
Add document to send request
CALL METHOD send_request->set_document( document ).
Send document
CALL METHOD send_request->send( ). -
TextEdit wont change font format by section
I just used TextEdit for the first time and found out when I select a section of text and change the format (regular > bold) the entire document changes. Is this a Preferences setting I missed, a problem with TextEdit, or just the way all text editors work.
no answer a long time
-
How to change font size for email sent
Email sent from my 4th generation iPod Touch appears with a tiny font ( 4pt.) on computers screens and printouts. Is there a way to change this on the iPod Touch? I have not been able to make the font larger in Mail on MBA. I am able to adjust font size of email form iPod Touch on Win 7.
ThanksHi, I just tried a few of the other suggestoions on related threads. Adjusting the font in the iPod only enlarges font on screen of iDevice. I set it back to Medium. That was OK.
In Mail on MBA command + enlarges font on screen only. Printout is still very small.
Thsi\\is seems to be something related to Mail not the iPod. Email does appear in normal size font on iBook running Panther, XP, Win 7 units. Printouts are normal size too.
Thanks again for your help. Being able to make the font larger on the MBA screen is good. -
Font problems in Mail sent from a Custom program
Hi,
There is a custom program which retrieves data from spool using function module 'RSPO_RETURN_SPOOLJOB' and the list returned by the above function module is moved to table Objbin and passed to function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' for sending the email. eversince upgrade,we are facing problems with the Font of the mail generated via the above function module. The font is really small. the sample code is given below:
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
TABLES
packing_list = objpack
contents_bin = objbin
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.this is how the code looks like:
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB' EXPORTING rqident = spool_number IMPORTING real_type = g_doc_type TABLES
buffer = compressed_list
EXCEPTIONS no_such_job = 1
job_contains_no_data = 2
selection_empty = 3
no_permission = 4
can_not_access = 5
read_error = 6
type_no_match = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE e132 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. * move the list to the official table ojbin
MOVE compressed_list[] TO objbin[].
create the document which is to be sent
doc_chng-obj_name = 'list'.
doc_chng-obj_descr = 'Inbound PO Faxes to Jobber'.
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = '0'.
objpack-doc_type = 'RAW'.
APPEND objpack.
DESCRIBE TABLE objbin LINES tab_lines.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = g_doc_type.
objpack-obj_name = 'Attachment'.
objpack-obj_descr = 'PO Order'.
READ TABLE objbin INDEX tab_lines.
doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
objpack-doc_size = doc_size.
APPEND objpack.
IF sy-sysid NE 'PC2'.
recipient_int-address = ws_dummy_fax.
ELSE.
concatenate int_customer-fax_number
ws_fax_address
INTO recipient_int-address.
ENDIF.
reclist-receiver = recipient_int.
reclist-rec_type = 'U'.
APPEND reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
TABLES
packing_list = objpack
contents_bin = objbin
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE e133 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
COMMIT WORK. -
How to change font in SMPT mail
How can I change the mailing font while i send the mail using oracle SMPT mailing utility.
Thanks
Vishal1.if you are sending the mail (body of the mail) in txt format you cannot do it.
2. You can do it if you sent the mail in HTML format. -
How do I permanently change the font & font size for outgoing emails on iCloud?
I can do it manually, but then iCloud mail never "remembers" that change - grr. frustrating! Anyone solve this?Well, from a Mac's email app you can set font and size.
If using icloud.com, since that's browser based, hit comand-+ to see a message in a larger font. Is this what you mean? I wouldn't be surprised that using a browser, settings like font/size aren't stored. -
Need Help Changing Font Size on Mail Program
OS X 10.8.3
My mail list under "sort by date" column has a small font which I would like to make bigger.
I have gone to Mail>Preferences> Fonts & Colors but none of those cseem to change the font in the second mail column under (Sort by date).There generally is no way to change the font, or font size. TinkerTool is one of a few utilities that will allow the change of some items, but for the most part, the OS ignores any settings you use in TinkerTool.
The default font for the system is Lucida Grande. You absolutely cannot change it. If you delete the font from the System folder, the OS will immediately replace it with a copy from a deeply hidden location. If you delete the font from both locations, the Mac will instantly become completely unusable, requiring a reinstall of the OS from your OS X installation disks. Unless you have another drive with OS X on it so you can copy Lucida Grande back to the drive you removed it from.
About the only easy way to increase the font size overall is to select a lower resolution in the Displays section of the System Preferences. -
InDesign CS3 script that changes fonts on open
Hello.
I am trying to come up with a script that would change a specific group of fonts, that will always show up missing, to the new font. Basically, it is a bunch of our postscript fonts that are now using our open type font. Below is what I have so far. I want to create a list that goes through about 8 fonts that are old and replace them on the fly with the 8 new fonts. This would be great if I could have this happen on open.
Can anyone see what I have and offer some guidance?
thanks
babs
Open this Scriplet in your Editor:
tell application "Adobe InDesign CS3"
set find text preferences to nothing
set change text preferences to nothing
tell application "Adobe InDesign CS3"
set OLDfont to {"times", "arial"}
set NEWfont to {"times new roman", "helvetica"}
--set find what of find text preferences to testString
tell document 1
repeat with swap from 1 to 2
set NEWfont to item swap of OLDfont
end repeat
end tell
end tell
end tellFor starters, you're going to have to use the correct font names, including correct capitalization. The property you want to change is "applied font", not "find what". And it would probably be more sensible, to go through all paragraph and character styles and make the changes there first, otherwise you'll have troubles again every time you edit stuff.
So start off by getting the name of the font used in every paragraph style, and loop through your list to see if they should be changed. Do the same for character styles. And then do the find/change to find any that have been applied manually. -
I cannot change fonts in my mail.
in the preference fonts and colors the select buttons don't work.
i have checked forum. none of the discussion have helped me solve thisSusan, When you click the select button, it pops up an additional window. Look around for something that looks like this:
-
How can I change font color on mail?
How can I make it so all emails start with an altered font color? Thanks!
i just trialed it out, and under the prefs you have to select what font you want, and above it theres are little icons with the different font colours, theres like the colour spectrum circle thing, you should be able to take a selection, apply it and its all done.
sorry i cant help more -
I'm often having issues with clients not seeing or being able to open attachments, font formatting changes (on the pc end) and the inability to use HTML signatures to promote our company brand.
I imagine your clients must be using Outlook, which is seriously broken when it comes to e-mail standards, especially HTML e-mail. You can work around the issues with Outlook by only sending plain-text e-mails and making sure that, in the Edit -> Attachments menu, the last two options are checked. Unfortunately, that means that HTML signatures are out.
If you need something with a fancy layout, either attach a PDF file to the e-mail or include a link to a website in the e-mail.
Maybe you are looking for
-
Hey guys I need inspiration this morning. I have built a big project in LabVIEW with several applications for different users. They all work on their project with one single number that follows the object thru the whole process in our company. All th
-
We are receiving the following error in XI: <b>Error: DB Tab RFCDES: Could not determine code page with ECQ</b> We have been in SM59 and checked the box for: Use Found Communication Code Page, but that has not worked. Is there somewhere else we can l
-
IDM roles creation / updation and deletion via workflows
Hi, We are in IDM 7.1. I wanted to know if there is any way to create / update / delete IDM roles using in the workflow / rules on a data driven logic rather than using the IDM admin page (Roles tab) and creating them with LDAP group attributes assin
-
Install SAP NetWeaver 7.0 (2004s) - ABAP Trial Version on a VM with W2K3
Hi community, i tried to install the SAP NetWeaver 7.0 (2004s) - ABAP Trial Version on a VM-Image of Windows 2003 server, but received a 601-error concerning the MaxDB-Installation (but surely there was no SAP-installation before)..has anyone an idea
-
Hi guys I am writning technical specification where I have to specify the order of keys in a new DSO. 1.On what basis do I choose order of keys in DSO?how will this order help me? 2.While creating DSO in BW,where do we have setting to choose this ord