問題は!=、Excel VBAで関数として機能しないことです。
使えるようになりたい
If strTest != "" Then の代わりに If strTest = "" Then
これを行う別のアプローチはあり!=ますか?
私が模倣する機能!=は
Sub test()
Dim intTest As Integer
Dim strTest As String
intTest = 5
strTest = CStr(intTest) ' convert
Range("A" + strTest) = "5"
For i = 1 To 10
Cells(i, 1) = i
If strTest = "" Then
Cells(i, 1) = i
End If
Next i
End Sub
あなたの質問は何ですか?
—
GSerg
!=VBAで機能しないのはなぜですか、またはVBAの不等式演算子とは何ですか?
!=といませんか<>?