List Fonts

S.H.A.D.O.

Well-known Member
Joined
Sep 6, 2005
Messages
1,915
Good evening,

I have some input in cell "A1", it could be a combination of upper case letters, lower case letters or numbers. What I would like to do is list the contents of cell "A1" using every font starting in cell "B1" and continuing down please.
Thanks in advance.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
What do you mean with font? The Font like Calbri, Marlett, Arial, and so on?
 
Upvote 0
Anyway, for instance:

Code:
Sub listfonts()
    
    With [A1]
        For i = 1 To Len(.Text)
            Range("B" & Rows.Count).End(xlUp).Offset(1).Resize(, 2) = _
                Array(Mid(.Text, i, 1), .Characters(i, 1).Font.Name)
        Next
    End With
    
End Sub
 
Upvote 0
Thanks for the reply wigi,

What I mean is, if I was to type Paul123 in cell "A1", then starting in cell "B1" and continuing down, cell "B1" would have Paul123 in the "Agency FB" font, cell "B2" would have Paul123 in the "Aharoni" font, cell "B3" would have Paul123 in the "Algerian" font etc all the way down to Paul123 in the "Wingdings 3" font which is the last font available in Excel 2007 which I am using.
Thanks again.
 
Upvote 0
You're welcome.

FYI, the Google search action was:

excel vba loop through installed fonts
 
Upvote 0

Forum statistics

Threads
1,224,570
Messages
6,179,611
Members
452,931
Latest member
The Monk

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top