If InStr(1, Replace(b, "-", ""), ".") = 4 Then If InStr(1, b, "-") Then ログ左右桁揃え = b Else ログ左右桁揃え = " " & b End If ElseIf InStr(1, Replace(b, "-", ""), ".") = 3 Then If InStr(1, b, "-") Then ログ左右桁揃え = " " & b Else ログ左右桁揃え = " " & b End If ElseIf InStr(1, Replace(b, "-", ""), ".") = 2 Then If InStr(1, b, "-") Then ログ左右桁揃え = " " & b Else ログ左右桁揃え = " " & b End If End if