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
 

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Watch MrExcel Video

Forum statistics

Threads
1,123,173
Messages
5,600,133
Members
414,365
Latest member
UUR

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
Top