If nirngSelectionの1つ目のセル.MergeArea.Address = Selection.Address Then
End If
Public Function nirngSelectionの1つ目のセル() As Range
Dim strSelection As String
strSelection = Selection.Address
strSelection = nistr文字列検索をして1つ目の区切り位置までの値を取得(strSelection, ",")
strSelection = nistr文字列検索をして1つ目の区切り位置までの値を取得(strSelection, ":")
Set nirngSelectionの1つ目のセル = Range(strSelection)
End Function
Public Function nistr文字列検索をして1つ目の区切り位置までの値を取得(ByVal pstrTarget As String, ByVal pstrDivide As String)
Dim intInstr As Integer
intInstr = InStr(pstrTarget, pstrDivide)
If intInstr = 0 Then
nistr文字列検索をして1つ目の区切り位置までの値を取得 = pstrTarget
Else
nistr文字列検索をして1つ目の区切り位置までの値を取得 = Left(pstrTarget, intInstr - 1)
End If
End Function