Consulting

Results 1 to 6 of 6

Thread: Macro to list all fonts in a Word doc

  1. #1
    VBAX Regular
    Joined
    Mar 2012
    Posts
    12
    Location

    Macro to list all fonts in a Word doc

    I am using the code in the below older thread to produce a list of fonts in a Word doc, it runs fine but only list Arial as the font and there are several others in the document. Any ideas what I am doing wrong? Thanks in advance.

    http://www.vbaexpress.com/forum/showthread.php?45007-Macro-to-List-all-Font-amp-its-size-in-a-word-document
    Last edited by macropod; 11-12-2018 at 02:12 AM. Reason: Corrected thread link

  2. #2
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    VBAX Regular
    Joined
    Mar 2012
    Posts
    12
    Location
    Thanks for the link but that code does not work for me. It runs and returns a pop up screen saying the following fonts are found but nothing reported. When you click ok it deletes the content from mu document. Any other suggestions are appreciated.

  4. #4
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Quote Originally Posted by cdrunner View Post
    Thanks for the link but that code does not work for me. It runs and returns a pop up screen saying the following fonts are found but nothing reported.
    For reasons explained in the link, that would only be so if you ran the code against an empty document.
    Quote Originally Posted by cdrunner View Post
    When you click ok it deletes the content from mu document.
    There is nothing in the code to delete anything...
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  5. #5
    VBAX Regular
    Joined
    Mar 2012
    Posts
    12
    Location

    Unhappy Macro to list all fonts in a Word doc

    Quote Originally Posted by macropod View Post
    For reasons explained in the link, that would only be so if you ran the code against an empty document.[/FONT][/COLOR]
    [COLOR=#222222][FONT=Verdana]
    There is nothing in the code to delete anything...
    I have a 23 page Word document open, I have added the code to a new module. I run t macro and get a pop up screen says "The following fonts have been found in the document but not on the system:" No fonts listed. When I click ok I am retuned to the Word document and the document is blank.

  6. #6
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    See my previous reply. I have not idea what you're doing to cause the results you're getting.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Posting Permissions

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