| 
    
     |  | ・ひらがなが表示されていたら非表示 ・ひらがなが表示されていなかったら表示(ひらがな設定がなければ自動設定)
 ・ひらがなが表示されていなかったら表示
 
 を再現したいのですが、何が間違っているのでしょうか?
 
 
 Sub ふりがなの表示()
 
 On Error Resume Next
 
 Dim mySelect As Range
 
 For Each mySelect In Selection.Cells
 
 If mySelect.Phonetics.Visible = True Then
 mySelect.Phonetics.Visible = False
 GoTo Jump
 End If
 
 If mySelect.Characters.PhoneticCharacters = "" Then
 With mySelect
 .SetPhonetic
 .Phonetics.Visible = True
 .Phonetics.Alignment = xlPhoneticAlignDistributed
 .Phonetics.CharacterType = xlKatakana
 .Phonetics.Font.Size = 6
 End With
 GoTo Jump
 End If
 
 If mySelect.Characters.PhoneticCharacters <> "" Then
 With mySelect
 .Phonetics.Visible = True
 .Phonetics.Alignment = xlPhoneticAlignDistributed
 .Phonetics.CharacterType = xlKatakana
 .Phonetics.Font.Size = 6
 End With
 GoTo Jump
 End If
 
 Jump:
 
 Next
 
 End Sub
 
 
 |  |