文字列の比較 admin | 2009年2月5日 If string=string2 Then MsgBox “同じです” End If でエラーが出た If StrComp(string, “string2”) = 0 Then MsgBox “同じです” End If で成功した。