How to set the "Do not embed common system fonts" property in Word object?

Hi guys,

How do you set the property "Do not embed common system fonts" to true using VBA? This option can be found under EmbedTrueTypeFonts property in Word (Tools>>Options>>Save tab). Could it be not possible at all programmitically? I have looked around and not found a definite answer.

Raj
rb79Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rb79Author Commented:
BTW for our Word DOC reports, setting EmbedTrueTypeFonts to true and the property "Do not embed common system fonts" to true results in reducing the Word file size from >800kB to ~230kB.
That's a big improvement. Just switching off EmbedTrueTypeFonts to false helps too (~250kB) but I would like to know if the property "Do not embed common system fonts" be accessed programmitcally.

Thanks.
0
byundtMechanical EngineerCommented:
Hi Raj,

Sub Embedder()
ActiveDocument.EmbedTrueTypeFonts = True    'This statement is not necessary to set DoNotEmbedSystemFonts=True
ActiveDocument.DoNotEmbedSystemFonts = True
End Sub

Cheers!

Brad
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rb79Author Commented:
Great! It worked. Should have guessed myself before posting here. Anyways you get your points. Thanks.
0
byundtMechanical EngineerCommented:
Raj,
If truth be known, I had never seen those settings. So I followed your directions while recording a macro (Tools...Macro...Record menu item). I then found the two statements that were doing something in the resulting code and placed them in a separate sub. After testing, I then posted my Comment. That's a lesson well worth knowing.

Thanks for the grade!
Brad
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.