+ Reply to Thread
Results 1 to 7 of 7

Using Excel to Install a Font

  1. #1
    Registered User
    Join Date
    05-28-2005
    Location
    WI, USA
    MS-Off Ver
    Office XP/2003
    Posts
    95

    Using Excel to Install a Font

    Hi,

    I've picked out a font that I want a workbook to use, but it's one that isn't installed on every computer (it came out of Office 2007, but my firm uses Office XP and 2003). So my thought was to store the .TTF files on a network drive and check the user's sysroot\fonts\ folder when the workbook opens. If the files aren't there, it'll copy them and reopen the workbook. I had thought this would restore the font, but it doesn't seem to be working. The files copy correctly and the workbook reopens, but it still shows everything in Arial (as if it can't find the correct font). Below is the routine I've created. Any thoughts?
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Caligula,

    When installing a new font, it has to be installed in the Font Folder used by the system. On a regular PC this is usually "C:\WINDOWS\Fonts". The files need to be extracted before they are placed in the folder. Be sure you have all the files for each size range the font uses. If you miss installing one, the font won't be available at all.

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    05-28-2005
    Location
    WI, USA
    MS-Off Ver
    Office XP/2003
    Posts
    95
    Hi Leith,

    Thanks for the response. I'm a little confused by it though. The variable fFolder identifies the individual user's font folder (in case it's WINXP\Fonts or something like that). The individual font files (all four, as you can see in the code) are stored on a network drive, not archived or anything like that. I've deleted the files from my own PC's Windows\Fonts folder, then used this macro to install them and they're fully functional in other applications (or in Excel after I close and reopen the program)... Am I missing something?


    Thanks,
    Chris

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Chris,

    I really don't know in this case because I have never installed fonts on network drive. If there were issues with network permissions, you surely would have received an error message about it. Perhaps someone else here at has had the same experience and can offer their advice. Sorry I couldn't be of more help.

    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    05-28-2005
    Location
    WI, USA
    MS-Off Ver
    Office XP/2003
    Posts
    95
    Hi Leith, as always, thanks for your responses. I just want to clarify that I'm not installing them on a network drive, per se. The .TTF files (which have to be stored in an individual PC's sysroot\Fonts folder to work) are being stored on a network drive. The only reason I'm doing this is so that anyone in my department that uses the spreadsheet will have access to these files. The Auto_Open macro does copy those files successfully to everyone's Fonts folder... My concern is why the font isn't being displayed properly without a lot of manual work. It can still be done from anyone's computer; they just have to set the font to something else, reopen Excel, then reset the font to the one that was just copied to their PC (far too much work)...

    Thoughts anyone?

  6. #6
    Registered User
    Join Date
    03-13-2008
    Posts
    52
    Workbooks.Open "J:\DCS\DATA\123\Daily\Dividend Tracking\New Div Master List.xls

    ^After re-opening the file the members of your department will still be set to a default font as I think this kind of system is built into Excel.

    Have you tried Recording a Macro selecting all the cells/ranges which need to have your new font and changing them to the new font i.e.

    Please Login or Register  to view this content.
    Hope this helps, if not please excuse me - I'm still learning myself!

    ~Liam
    Last edited by LiamPotter; 03-20-2008 at 10:04 AM.

  7. #7
    Registered User
    Join Date
    05-28-2005
    Location
    WI, USA
    MS-Off Ver
    Office XP/2003
    Posts
    95
    Thanks everyone for your responses. I did finally figure out how to get this to work... I believe it's either a Windows issue or an issue inherent in Office applications. If the font files are copied to C:\windows\fonts\, but not with Windows Explorer, the font list is never updated in Excel (or Word, Access, etc). However, if you open Windows Explorer and navigate to the font folder, the next time you open Excel, the font list will be correct (and the newly installed font will display correctly). So I wrote some code to copy the files to a user's font folder then shell a copy of explorer (code below). It works, but I'd like an easier way... Any thoughts?

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1