Hi,
Nearly all macro's I have found all add the default signature to the email string, but I have a certain signature I want to add to specific responses.
Let's say this signature name is "ABCDE"
How can I add this to the outlook VBA?
Hi,
Nearly all macro's I have found all add the default signature to the email string, but I have a certain signature I want to add to specific responses.
Let's say this signature name is "ABCDE"
How can I add this to the outlook VBA?
have you tried Ron's code?
http://www.rondebruin.nl/win/s1/outlook/signature.htm
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
I have, and this is great for creating new emails,
but mine is going to be a reply or forward to an existing email, keeping the existing attachments and email string.
btw, this is the code I already have and where I only need to add the signature change
![]()
Please Login or Register to view this content.
Last edited by Marijke; 11-10-2015 at 10:31 AM.
Outlook VBA is not really my area but all i can suggest is maybe something like the below code
whereby you "grab" the signature and shove it into the body
it works in my trial but....i found the formatting to be off because my signature is in HTML
![]()
Please Login or Register to view this content.
Like my VBA, this one grabs the default signature, only yours is in plain text, while mine kept it in html.
I have also used Ron de Bruins page and tried to combine, but no luck so far.
I'm sure there must be a line inserted somewhere, where you can tell VBA to pull a certain signature forward, I just can't manage to put it together.
(or I might have missed on a Dim.... As.... instruction)
![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
To mark "Solved" go to Thread Tools.
I have been OOO for some time and finally got around to reworking this 'problem' of mine.
I almost got it to do what I need to, (with the help of skatonni!) but I have 1 problem yet to solve;
How do I change the subject line?
I used to replace certain words with others, but I somehow can't get it to incorporate in the new module....
For example, subject says Good morning Marijke, nice to see you
and I want it to say, Good afternoon team, nice to see you
![]()
Please Login or Register to view this content.
wow very old thread
cant you just add .subject?![]()
Please Login or Register to view this content.
like so
![]()
Please Login or Register to view this content.
yeah, I know... I should be ashamed![]()
tried that trick you suggested, (and a couple of others actually)
but it replaces the entire subject line (and in the other things I tried it just ignores it completely and leaves the subject line as is.)
what you had above for subject, i modified it slightly![]()
Please Login or Register to view this content.
made the variable strSub instead of subject to make it more clear
also you dont need boiler separate i added it directly into the code
Last edited by humdingaling; 09-14-2016 at 08:47 PM. Reason: slight code change
cleaned it up some more and added more descriptions
i am assuming you only want to mark unread & "processing" for mail items which you actually process![]()
Please Login or Register to view this content.
Exactly what I was looking for humdingaling!!
works like a charm![]()
Big thanks from my end, and case closed.....![]()
not a problem
good to hear
i learnt a thing or two since you first started the thread![]()
Thanks humdingaling for code that is very useful.
I know this is an old thread, however if there is an embedded image in the Signature, the embedded image will not be displayed. The following code (important parts in red) should take care of that problem:
Lewis![]()
Please Login or Register to view this content.
Last edited by LJMetzger; 11-03-2017 at 08:38 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks