Phonetic not visible in Excel

pjha21

New Member
Joined
Mar 27, 2009
Messages
5
Hi,

I am a novice in VBA.
Through VBA, I am trying to select a range of cells in excel and get Phonetics in another range of cells through below code:

Sub Phonetic_Guide()

With Range("D2:D5000").Phonetic
.CharacterType = xlHiragana
.Alignment = xlPhoneticAlignCenter
.Font.Name = "MS明朝"
.Font.Size = 6
.Font.Strikethrough = False
.Font.Underline = xlUnderlineStyleNone
.Font.ColorIndex = xlAutomatic
.Visible = True
End With

End Sub


The issue:
With the above code, Phonetics generate in column D. However, phonetics are not visible in Column D unless I select each cell, click on "Edit Phonetic" option available under "Phonetics".

Once Phonetics is visible in column D it gets copied in corresponding cell when I use "=PHONETIC(D2)" formula in "C2" cell.

In the above code, is it possible to write add VBA code to automate "Edit Phonetic" option and copy Phonetic in Column C?

Regards
PJha
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,223,270
Messages
6,171,103
Members
452,379
Latest member
IainTru

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top