#1   Report Post  
rstahltx rstahltx is offline
Junior Member
 
Posts: 0
Default Phonetic Guide Macro

I am trying to create a Macro that takes the selected text and adds the Phonetic Guide Pinyin text on top Chinese characters. If I just record a macro to do this task, I get this:

Sub test1()
With Selection
.Start = 4573
.End = 4574
.Range.PhoneticGuide Text:="shi", Alignment:= _
wdPhoneticGuideAlignmentCenter, Raise:=12, FontSize:=5, FontName:="fontname"
End With
End Sub

It works, but I need a range using my current selected text, and the "Text:=" should not already be predefined in the macro--that, of course, makes it useless. I tried the following with no luck:

Sub AddPhoneticGuide()
Dim myRange As Range
Set myRange = ActiveDocument.Range(Selection.Range.Start, Selection.Range.End)
With myRange
.Range.PhoneticGuide Alignment:=wdPhoneticGuideAlignmentCenter, Raise:=27, FontSize:=13, FontName:="fontname"
End With
End Sub

I have no experience writing macros, which is probably obvious; so, if you just want to paste the exact code to make it work, I will gladly accept--I am not proud. This macro would save me a lot of time, since I cannot change the default setting of Word's Phonetic Guide.

Thanks!
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Phonetic guide in word Jung Kwon[_2_] Microsoft Word Help 0 November 21st 09 11:19 AM
phonetic guide Jung Kwon Microsoft Word Help 0 November 21st 09 11:10 AM
Phonetic Guide in Word Cath Microsoft Word Help 1 May 17th 09 06:08 AM
chinese phonetic guide mike Microsoft Word Help 1 March 17th 08 03:09 PM
japanese phonetic guide adam Microsoft Word Help 3 August 27th 05 03:07 PM


All times are GMT +1. The time now is 06:48 PM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"