一个神奇的vba问题

时间:2022-08-10 16:51:07
【文件属性】:
文件名称:一个神奇的vba问题
文件大小:15KB
文件格式:XLSM
更新时间:2022-08-10 16:51:07
贴吧问题相关 一段超简单的代码,第一个结果为true,第二个为False。 Sub basic() If Sheet1.Cells(1, 1).Value = Sheet1.Cells(1, 2).Value Then MsgBox (Sheet1.Cells(1, 1).Value > 1) End If Sheet1.Cells(1, 1).Value = "" If Sheet1.Cells(1, 1).Value = Sheet1.Cells(1, 2).Value Then MsgBox (Sheet1.Cells(1, 1).Value > 1) End If End Sub

网友评论