How do I change the Font of Korean text using VBA

S

Sandy

I have some Korean text in Powerpoint 2000.
I want to change the font of the text from "Gulim" to "HYSinMyeongJo-Medium"
using Vba code.
I have changed the office settings to include Korean language
 
S

Steve Rindsberg

I have some Korean text in Powerpoint 2000.
I want to change the font of the text from "Gulim" to "HYSinMyeongJo-Medium"
using Vba code.
I have changed the office settings to include Korean language

Have you tried recording a macro while you change the font manually?
That should get you the code you need to change the the font characteristics.
From there, it's a matter of getting a reference to the shape's properties:

I don't have either of those fonts on this computer, but I'm guessing that
something like this will work:

Sub ChangeFont()
Dim oSh as Shape

' For test purposes, use currently selected shape
Set oSh = ActiveWindow.Selection.ShapeRange(1)
With oSh.TextFrame.TextRange.Font
.NameAscii = "HYSinMyeongJo-Medium"
.NameOther = "HYSinMyeongJo-Medium"
.NameFarEast = "HYSinMyeongJo-Medium"
End With
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top