Oultlook 2007 Signatures

Status
Not open for further replies.

LMS

Senior Member
Outlook version
Email Account
Exchange Server
Is there way to automatically not use your default signature for a certain contact, or a bunch of contacts in a subfolder. So if I can identify what contacts don't get an automatic signature, the others still get it.
 
Given I just learned how to put codes in a contact script.....since certain contacts in a certain subfolder are using a different form of a contact then other contacts, its there a way to put something in the script of the contact form that takes off the default signature?
 
If you want to remove it completely rather than pick a different signature, you could use item.body ="" to clear the body when the message is opened.
 
Thanks so much. Do I put it just those words in the Script of the Contact form or what other lines do I do with it, so I know the full code?

And secondly, I created some email templates that I use for this type of Contact, which has a few words in it like a signature....for example "Love You, Dad"

So what can I do on the script so depending on the simple words I added as a signature (not as a formal signature, just part of the body), so it keeps those that show up?

I really appreciate it as this would be great.
 
Somethimng like

Public Sub SendMail()

Dim objMsg As MailItem

Set objMsg = Application.CreateItem(olMailItem)
objMsg.Display

Set objMsg = Nothing

End Sub

to use a template, use

Set objMsg = Application.CreateItemFromTemplate("C:\path\to\template.oft")
 
So do this for each email template that runs from a macro on the contact and put each code in the script....so when i run the macro that uses the template, this script takes care of it...correct? as I am using 4 different templates re this area of contacts
 
I did this in the Script and when I ran the macro from the combobox thing in the contact re the template for purposes of the email, it did not delete the default signature and leave in the words from the template.....it shows my words of the template and the default signature.....any other thoughts please?

Public Sub SendMail()
Dim objMsg
Set objMsg = Application.CreateItemFromTemplate("C:\Users\Stoler Law\AppData\Roaming\Microsoft\Templates\E-mail From Dad.oft")
objMsg.Display
Set objMsg = Nothing
End Sub
 
Oh, shoot. I wasn't thinking clearly - it won't work for templates, because you can't use objmsg.body = "" and keep the content of the template.

How much text is in the template? You can add it using a macro -

objmsg.body = "No, I will not send you money!"

you can use HTML code (and HTMLbody) if you want to for

objmsg.htmlbody = "<B>No, I will not send you money!</b>"

While i know people who use this method for long text, I prefer to keep it short, with just a line or two.
 
Thanks very much. So just create the macro for each template and I can use that other code that will set up a combobox with the Userform code.

And if there are two lines with one space between the lines, what do I change in the Macro so it shows up the way I need it to show? And please show the full code form for the macro so I know where the words are to be.

Thanks very very much.
 
I still need how to have two lines and one line space between them....but I created that macro and ran it, and the one word I added to the objmsg line is showing up perfectly, but the email is still adding the default signature....If we solve this and show me how there can be a one line space between two lines, we are done again!!!!
 
I just tried it this way with out a template and the signature is not showing up and it only shows the words......so just need to know how to create to liens with a line space between....and also, the word I added is showing up as a bold font...so is there a way to make it not bold when it shows up....

Public Sub SendMail55()
Dim objMsg As MailItem
Set objMsg = Application.CreateItem(olMailItem)
objMsg.HTMLBody = "<B>Dad</b>"
objMsg.Display
Set objMsg = Nothing
End Sub
 
Just fixed the bold as shown below...and just need to have two lines space before the word "Dad" and one line space between the next line of words to add to the macro....and this takes care of it.....

And then after I got this macro, how to I run the macro as a response to an email?? That would be perfect as well!!!
 
Got everything done...created the macros the macro to the macro from the OutlookSessions area....created the combobox link in the contact that shows the list of the emails with the lines I added.....and also, added the code you gave so it goes to the contact email...and added a line for the Subject words....so just need what I said above re two line spaces before my first line of words and one line space after the first line before the second line...Thanks very very much..
 
And also, how do i use the macro that has just the words i want with the line spaces, as a macro i can click somehow as a response to an email?
 
I just found out how to do it, and wanted to let all know just in case I is helpful!Public Sub E_Mail_From_Dad()

Set oContact = GetCurrentItem()

Dim objMsg As MailItem

Dim sMsgBody As String

' Blank message

' Set objMsg = Application.CreateItem(olMailItem)

Set objMsg = Application.CreateItem(olMailItem)
sMsgBody = vbCrLf & vbCrLf
sMsgBody = sMsgBody & "Love You;"
sMsgBody = sMsgBody & vbCrLf & vbCrLf
sMsgBody = sMsgBody & "Dad"
objMsg.To = oContact.Email1Address
objMsg.Subject = "From Dad"
objMsg.BodyFormat = olFormatRichText
objMsg.Body = sMsgBody
'displays the message form so you can enter more text
objMsg.Display
'use this to send to outbox
'objMsg.Send
Set objMsg = Nothing

End Sub
 
While your way is easier to read when working with a lot of text, you can put it all on one line:

sMsgBody = vbCrLf & vbCrLf & "Love You;" & vbCrLf & vbCrLf & "Dad"
 
Thanks very much.....and just in case, given the code, I did not make it HTML as that created line spaces when I then type in words above the automatic words ......so is there a way to use HTML...change the code and not have the words I type in above the automatic words have a line space between each line....and is there a way to make the automatic words re this code the font of bold...as you gave me that before it was not working with this code....thank you again!!.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
B Oultlook 2007 Signature back ups Using Outlook 4
D Outlook 2007 Recovering E-Mails Using Outlook 0
W Transfer Outlook 2016 autocomplete file to Outlook 2007 Using Outlook 1
C Outlook 2007 Removing then adding account restores junk email processing Using Outlook 0
S Outlook 2007 crash linked to gdiplus.dll Using Outlook 0
S Outlook 2007 - Automatic purge fail Using Outlook 0
J outlook 2007 doesn't let me choose which .pst to search Using Outlook 2
D Outlook 2007 vs. Outlook 2010 -- ToDo Bar Using Outlook 0
D Outlook 2007 on 365 Using Outlook.com accounts in Outlook 2
S Macro for other actions - Outlook 2007 Outlook VBA and Custom Forms 23
S Verwendung von Outlook 2007 Using Outlook 0
A Arthur needs help with 2007 Outlook e-mail Using Outlook.com accounts in Outlook 3
M PST import from Outlook 2007 to 2010 - Address Book contacts all in 1 group Using Outlook 4
S outlook 2007 calendar search Using Outlook 6
B Migrate Outlook 2007 to Office 365 Using Outlook 3
X I have met my waterloo trying to resolve embedded graphics problem with outlook 2007 and now 2016 Using Outlook 1
R Outlook 2007 only loads some appointments Using Outlook 0
C Move Outlook 2007 to new PC with Outlook 365 Using Outlook 3
J Outlook 2007 Hide Messages Option not Available Using Outlook 2
B Outllok 2007 License Expired issue Using Outlook 0
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 4
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 0
B Server errors Outlook 2007 Using Outlook 1
S Reboot of frozen windows7 results in changed outlook 2007 settings Using Outlook 1
S Outlook 2007 printing wrong email address at top of page Using Outlook 8
M Configure outlook 2007 to accept digital signatures Using Outlook 2
D Outlook 2007 crashes when opening an email Using Outlook 2
R New chap saying hello and needing advice on Outlook 2007 thumbnails Using Outlook 3
icacream From Outlook 2007 to 2016 ! Using Outlook 9
vodkasoda Object could not be found Error in Outlook 2007 Outlook VBA and Custom Forms 5
S Outlook 2007: Address Cards allow entering text! Why? Using Outlook 3
S View Appointment in Text Wrap in Outlook 2007 Month Calendar View Using Outlook 0
L Outlook 2007 Separate the Send/Receive functions Using Outlook 2
Steven 2007 New PC vs Old PC - Micro Font on Inbound Emails :( Using Outlook 4
M Outlook 2007 Contacts Glitch: Creating a new email Using Outlook 1
C Move from Outlook 2007 Enterprise (MOE) to Outlook Pro plus 2007 Using Outlook 1
J reinstalling Outlook 2007 asking for user name & password Using Outlook 14
P outlook addin unloaded in office 2007 Using Outlook 0
P Oulook addin unloaded in office 2007 Outlook VBA and Custom Forms 2
B Fonts in Outlook 2007 Using Outlook 4
R Add Exchange Account to existing POP3 Outlook 2007 Profile Using Outlook 0
C out of space in file group Outlook 2007 Using Outlook 2
A Moving archived contents in Outlook 2007 back into working folders Using Outlook 0
P Outlook 2007 Email Categorization using VBA Outlook VBA and Custom Forms 1
M Unable to Configure Gmail Account in Outlook 2007 Using Outlook 1
R Outlook 2007 or 2010 - Lock Down Functionality Outlook VBA and Custom Forms 3
S Outlook 2007, windows 10 Font size Using Outlook 1
norbertlars Exchange 2007 - quota not shown in clients Exchange Server Administration 2
Diane Poremsky Manually create a POP3 account in Outlook 2007 Using Outlook 0
J Can Click to Drag Custom Form Field But Cannot Drop When Designing in Outlook 2007 Outlook VBA and Custom Forms 2

Similar threads

Back
Top