1Sub ReplacePeriodWithNewLine()
2 Dim cell As Range
3 Dim newText As String
4
5 ' 選択範囲の各セルを処理
6 For Each cell In Selection
7 If Not IsEmpty(cell.Value) Then
8 ' 「。」の後に改行(vbLf)を追加
9 newText = Replace(cell.Value, "。", "。" & vbLf)
10 cell.Value = newText
11 End If
12 Next cell
13
14 MsgBox "処理が完了しました!", vbInformation
15End Sub