如何在vb.net中使用IsNull?
How to use IsNull in vb.net?
以下代码在 vba;
中是正确的
Sub Macro1()
Columns("A:A").NumberFormat = "General"
Range("A7").NumberFormat = "m/d/yyyy"
If IsNull(Columns("A:A").NumberFormat) = True Then
MsgBox "Column A format is not General"
End If
End Sub
我正在尝试将以上代码转换为 vb.net 代码。
试试这个
If IsNothing(Columns("A:A").NumberFormat) Then
MessageBox.Show("Column A format is not General")
End If
以下代码在 vba;
中是正确的Sub Macro1()
Columns("A:A").NumberFormat = "General"
Range("A7").NumberFormat = "m/d/yyyy"
If IsNull(Columns("A:A").NumberFormat) = True Then
MsgBox "Column A format is not General"
End If
End Sub
我正在尝试将以上代码转换为 vb.net 代码。
试试这个
If IsNothing(Columns("A:A").NumberFormat) Then
MessageBox.Show("Column A format is not General")
End If