一段超简单的代码,第一个结果为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).Val