+ Reply to Thread
Results 1 to 4 of 4

Excel VBA to open new outlook message with signature and preferred body text format

  1. #1
    Registered User
    Join Date
    10-31-2011
    Location
    Singapore
    MS-Off Ver
    Microsoft 365 (Windows 10)
    Posts
    62

    Excel VBA to open new outlook message with signature and preferred body text format

    Hi,

    I use an excellent VBA macro from Ron de Bruin to copy and paste a range of cells into the body of an outlook email. It works a breeze, and i'm very happy with it. However, the new mail window this macro opens has Time New Roman as the default font and i would like Calibri, size 11. This new mail woindow also doesnt have my new message signature, and im having to follow the steps in outlook to insert the signature every time i send the mail. Is there a way to tweaqk the code below so that:

    1. Text format of the new mail message is Calibri, size 11.
    2. The new mail widow contains my signature as it would if i opened a new mail widow from within Outlook



    Currently, the excel range goes into the email and i manually change everything, but i have to send many of these mails a day so i was hoping it could have it programmed to my preferences to make life a little easier..!

    Here is the macro I use. Appreciate any help! Thanks

    -----

    Please Login or Register  to view this content.
    Last edited by morayman; 11-06-2013 at 10:16 PM. Reason: I broke the rules!

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Excel VBA to open new outlook message with signature and preferred body text format

    Hi, morayman,

    you can have a look at Insert Outlook Signature in mail for checking the availability of the wanted signature. If you follow the shown sample you will be able to add a wanted signature into the mail.

    Regarding the font: as the body is formatted as HTNL you would need to add a command that will change the font accordingly. Maybe try
    Please Login or Register  to view this content.
    where Signature is the variable set according to the link I provided before.

    AFAIK you will not be able to assign the font-size as 11 as HTML doesn´t support that (might be outdated on that information but I only know of size to be accepted between 1 and 7 for small to large but not as being the same you might use in Office).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    10-31-2011
    Location
    Singapore
    MS-Off Ver
    Microsoft 365 (Windows 10)
    Posts
    62

    Re: Excel VBA to open new outlook message with signature and preferred body text format

    Hi HaHoBe,

    Using you tweak, the font above the pasted range cells is Calibrim, but below the pasted cells in the email body, the font is still Times New Roman. I need to do write stuff after/below the pasted range in the email body...

    Thanks for your help, i think we're almost there!

    N

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Excel VBA to open new outlook message with signature and preferred body text format

    Hi, morayman,

    you may try to repeat the first command regarding the font after the RangetoHTML.

    Ciao,
    Holger

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Create Outlook Reminder on Excel and transfered to outlook by macro
    By Benjamin2008 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2013, 03:23 PM
  2. [SOLVED] VBA Macro to print to Pdf format and place as attachment in Outlook (Excel & Outlook 2007)
    By Webman1012 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2013, 01:25 PM
  3. Export from Excel to Outlook, Outlook has to be running?
    By christian2012 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2013, 07:01 PM
  4. Exporting Excel data into Outlook calendars: Changing an Outlook VBA to Excel VBA
    By spaceporker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-19-2012, 11:39 PM
  5. excel open in outlook if outlook is running
    By kirk in forum Excel General
    Replies: 0
    Last Post: 05-24-2006, 01:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1