+ Reply to Thread
Results 1 to 6 of 6

Get Default Signature of outlook

  1. #1
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Get Default Signature of outlook

    Hi... in Excel Vba we usually use the below code to insert Outlook Signature...

    we have to enter it manually the name of the Signature like below I written Naveen.htm where Naveen is my signature name in outlook..

    we cant always edit the below code and enter signature names in every pc where ever I am using this Workbook to run the macro....

    Please Login or Register  to view this content.
    Is there any method to capture default signature Name which is already in outlook of current user....


    as username can get from
    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Get Default Signature of outlook

    If you .Display the email before defining the HTMLBody, Outlook automatically adds the default signature if the user has defined one. Then concatenate your email body before the default signature.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Get Default Signature of outlook

    Hello, I tried the same, its working with default signature but every time screen is displaying (flickering) for every email...even after putting screen updating as false at the beginning, and True at the end

    it may be due to .Display we used instead of .Send .. any other solution....

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Get Default Signature of outlook

    Quote Originally Posted by naveenmarapaka View Post
    .. any other solution....
    This will get the default signature by first displaying one dummy email and storing its signature (.HTMLBody). It then uses the stored signature for the other emails. So one email will flicker. That's the best I can do.

    Put the code that stores the default signature before any Loop you use to generate the other emails

    Store the default signature
    Please Login or Register  to view this content.

    Concatenate the stored signature.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Get Default Signature of outlook

    I would say this is very good idea instead of every time editing my code and writing the signature name ....

    thanks a million Alpha....

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Get Default Signature of outlook

    You're welcome.

+ 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. [SOLVED] How to insert default Signature in Code
    By bdouglas1011 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-14-2014, 03:39 PM
  2. Email macro, include variable in body & add default outlook signature
    By promithius in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2013, 09:05 AM
  3. send selected range in email with default outlook email signature included
    By mdsickler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2013, 10:50 PM
  4. vb code for default user signature
    By cooket4 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-27-2012, 10:04 AM
  5. Getting Outlook To Add Default Signature
    By McNulty in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-13-2009, 01:17 PM

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