ONe wa:
Public Function BoldChars(ByRef rCell As Excel.Range) As Variant
Dim nCount As Long
Dim i As Long
With rCell
If .Cells.Count > 1 Then
BoldChars = CVErr(xlErrRef)
Else
For i = 1 To .Characters.Count
nCount = nCount - .Characters(i, 1).Font.Bold
Next i
BoldChars = nCount
End If
End With
End Function
In article <7C1245CB-6398-415A-AA08-(E-Mail Removed)>,
Duddly Dummy <Duddly
(E-Mail Removed)> wrote:
> I need to create 2 cells from one cell based on Bold Type. The Bold type
> characters (name) will be copied into one new cell with the rest of the
> characters (registration number, color(bay/chestnut) and dates) in a 2nd new
> cell. The original cell can contain up to 28 alpha/numeric characters. How
> can I count the number of Bold Type characters in a cell? I will be working
> with several hundred original mixed cells.
>
> EX:NAME ahr#1234567 1989 (with NAME being bold type.)
>
> Thanks in advance for your help!!