
Originally Posted by
tigerlilyliz
I would like to run a macro that figures out that the record is from bold to bold
Liz
Hi Liz,
A quick and dirty function you could use which would return all of the bold characters within a string of text would be:
Function GetBolds(InputText As Range)
For y = 1 To Len(InputText)
If InputText.Characters(y, 1).Font.Bold = True Then GetBolds = GetBolds & Mid(InputText, y, 1)
Next y
End Function
Paste this to a new module, then in your spreadsheet, use the formula:
=GetBolds(A1)
...where A1 contains a line of text you want to get the bold characters out of.
Copy this function down for each of the addresses in your list to extract the bold characters.
Bookmarks