Oultlook 2007 Signatures

Status
Not open for further replies.
I found the way per what you gave me earlier, to make the words bold, but the areas to create the line space does not do it, and anything else I type is bold, rather than not bold...

So is there a way to create the line spaces and only bold the automatic words...and would like to hear back from the SMART WOMAN!!!! :D

:D:D:D

Here is the two different ways I did it per the earlier code and then how you showed me to do it as one line re the words:

Public Sub E_Mail_From_Dad2()

Set oContact = GetCurrentItem()

Dim objMsg As MailItem

Dim sMsghtmlbody As String

' Blank message

' Set objMsg = Application.CreateItem(olMailItem)

Set objMsg = Application.CreateItem(olMailItem)
objMsg.HTMLBody = vbCrLf & vbCrLf
objMsg.HTMLBody = objMsg.HTMLBody & "<B>Love You,</b>"
objMsg.HTMLBody = objMsg.HTMLBody & vbCrLf & vbCrLf
objMsg.HTMLBody = objMsg.HTMLBody & "<B>Dad</b>"
objMsg.To = oContact.Email1Address
objMsg.Subject = "From Dad"
objMsg.BodyFormat = olFormatHTML
MsgBody = objMsg.HTMLBody
'displays the message form so you can enter more text
objMsg.Display
'use this to send to outbox
'objMsg.Send

End Sub

Public Sub E_Mail_From_Dad3()

Set oContact = GetCurrentItem()

Dim objMsg As MailItem

Dim sMsghtmlbody As String

' Blank message

' Set objMsg = Application.CreateItem(olMailItem)

Set objMsg = Application.CreateItem(olMailItem)
objMsg.HTMLBody = vbCrLf & vbCrLf & "<B>Love You, </b>" & "<B>Dad</b>"
objMsg.To = oContact.Email1Address
objMsg.Subject = "From Dad"
objMsg.BodyFormat = olFormatHTML
MsgBody = objMsg.HTMLBody
'displays the message form so you can enter more text
objMsg.Display
'use this to send to outbox
'objMsg.Send

End Sub
 
Try this for the HTML line:
objMsg.HTMLBody = "<br /><p><b>Love You, </b><br /><b>Dad</b></p>"

(The <p> and </p> are probably not necessary. )
 
Thanks again so much....I ran what you showed and if you take out the p stuff, the space is not the same before the first work line....so I kept that in...and between the the two word lines, there was not a line space so I tried the following and it creates the line space between the two line.....so the only last thing to fix on this, is after the last work line when I hit enter to type in words below it, it's bold...so is there something at the end of the HTML line that makes sure that the next word line after it is not bold!!

objMsg.HTMLBody = "<br /><p><b>Love You, <br /><p><b>Dad</b></p>"
 
1) you didn't end the bold tag around "love you" - </b> - you should always use closing tags - outlook *should* add it for you to create proper HTML, but it's good practice to use it.

2) when you press Enter at the end of a line, outlook assumes you want to continue to use the formatting of that line. Add a <br /> (line break) at the end so the new line is ready to use.
 
Thank you so much.

So if there is a line break at the end, the words after that are not bold?

And is this the code as not sure re the <p> at the end or before the line break.

objMsg.HTMLBody = "<br /><p><b>Love You,<b> <br /><p><b>Dad</b></p><br />"
 
Here is what I did per your advice, and it adds a new line automatically.....and the words I type in are not bold....thanks so much as usual!!!

objMsg.HTMLBody = "<br /><p><b>Love You,<b> <br /><p><b>Dad</b></p><br />"
 
Thank you so much.

So if there is a line break at the end, the words after that are not bold?

it's not so much that there needs to be a line break, but that you need a new line inserted that does not have formatting. The closing b (</b>) ends the formatting but when you start a new line, outlook uses the same formatting as the current line. Because the last character is bold, it's carried over to the next line. If you had a character after the bold part, a new line should be normal font. IMHO, i think its easier if there is a blank line at the end though.
 
As I said, what you gave re the line break works perfectly!!! It's easier.:)

And if you can, look at the new post I just did to figure out how to use a macro that opens up a subfolder which is under the Contact folder...I just posted it and the code someone showed me but it is nothing so far!! Just in case you know..it will be fast...as in the contact form, after I have a list of these macros, I can create droplist as I did before to go to the correct folders etc....thanks so much!!
 
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