fonts

M

Mitko

Hi,
how can I add a combobox that lists fonts intalled on my computer. Thanks in
advance

--
_________________________________________
Mitko Kostov
ICQ#: 67068080
More ways to contact me: http://wwp.icq.com/67068080
_________________________________________
 
D

Doug Robbins - Word MVP

Hi Mitko,

The following code in the Initialize event of a userform that contains a
combobox ComboBox1, will populate that combobox with the fonts installed on
the computer:

Dim i As Integer
For i = 1 To Application.FontNames.Count
ComboBox1.AddItem Application.FontNames(i)
Next i

Please respond to the newsgroups for the benefit of others who may be
interested.

Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top