ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Installing font with VB (https://www.excelbanter.com/excel-programming/314429-installing-font-vbulletin.html)

joev7777

Installing font with VB
 
I have written an excel template that uses a font I distribute with the
spreadsheet. Most of the computers that use this spreadsheet don't have this
particular font, so Excel falls back to a default font.

How would I install a font from within Excel using VB?

Thanks

Joe V.

Tom Ogilvy

Installing font with VB
 
You basically use the windows API.

I couldn't find anything VB specific, but this foxpro article shows how and
should be easily convertable. I didn't study it, but it appear to be 90%
API calls (done very similar to how you would do it in VB) and little foxpro
specific stuff.

On thing you need to be sure of is that you have authority to distribute the
font.

http://support.microsoft.com/default...b;en-us;186722
How To Programmatically Install a True Type Font (visual foxpro)

--
Regards,
Tom Ogilvy

"joev7777" wrote in message
...
I have written an excel template that uses a font I distribute with the
spreadsheet. Most of the computers that use this spreadsheet don't have

this
particular font, so Excel falls back to a default font.

How would I install a font from within Excel using VB?

Thanks

Joe V.




joev7777

Installing font with VB
 
Thanks Tom,

I appreciate your response.

Joe V.

"Tom Ogilvy" wrote:

You basically use the windows API.

I couldn't find anything VB specific, but this foxpro article shows how and
should be easily convertable. I didn't study it, but it appear to be 90%
API calls (done very similar to how you would do it in VB) and little foxpro
specific stuff.

On thing you need to be sure of is that you have authority to distribute the
font.

http://support.microsoft.com/default...b;en-us;186722
How To Programmatically Install a True Type Font (visual foxpro)

--
Regards,
Tom Ogilvy

"joev7777" wrote in message
...
I have written an excel template that uses a font I distribute with the
spreadsheet. Most of the computers that use this spreadsheet don't have

this
particular font, so Excel falls back to a default font.

How would I install a font from within Excel using VB?

Thanks

Joe V.






All times are GMT +1. The time now is 08:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com