Hi,
I need to have every second line in a cell in bold. Can you help me with the code? I have found codes on the internet but all of them bolds the first line only. I'm not sure how to change them.
Sample: ( I need the Show me a sign in Bold along with every 2nd line in every cell)
October 01, 2017Show me a sign
You ask the Universe to show you a sign that you should leave your job... and the next thing you know you're driving down Leave-Your-Job Blvd, and you're like, 'I wonder if that was a sign.' - Kyle Cease
The thought that we need a sign to take action is the sign we're looking for. After all, when something is truly relevant for us, it feels right, and we certainly don't go around obsessing over whether or not we should change it.
Option Explicit
Sub BoldFirstLine()
Dim r As Range, c As Range
Dim ws As Worksheet
Set ws = ActiveSheet
Set r = ws.UsedRange
For Each c In r
With c
.Font.Bold = False
.Value = .Text
.Characters(1, InStr(.Text, vbLf) - 1).Font.Bold = True
End With
Next c
End Sub
Thank you in advance!