Author Topic: Font Style via VBA  (Read 997 times)

0 Members and 1 Guest are viewing this topic.

CmdrDuh

  • Automatic Duh Generator
  • King Gator
  • Posts: 4039
Font Style via VBA
« on: October 22, 2007, 02:43:57 PM »
Is there a way to control the font style via VBA?  I.E. Regular vs Bold vs Italic, etc.  I had a bonehead user that was setting that up, and they dont know how many or which dwgs they "might" have touched.  I couldn't find anything, so Im thinking I might rename the font to something else, recreate the style correctly, and globally change all text/mtext to new correct font style.  If I can get rid of the Bold option a different way, that would be quicker
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second

Chuck Gabriel

  • Guest
Re: Font Style via VBA
« Reply #1 on: October 22, 2007, 03:27:41 PM »
Take a look at the SetFont method of the TextStyle object in the help.

CmdrDuh

  • Automatic Duh Generator
  • King Gator
  • Posts: 4039
Re: Font Style via VBA
« Reply #2 on: October 22, 2007, 03:31:16 PM »
Thanks, I knew there had to be a way
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second