【发布时间】:2019-03-27 12:03:09
【问题描述】:
这里是 VBA 菜鸟,
所以我有 3 列(A、B 和 C)
A = Received Goods
B = Sent Goods for Shop 1
C = Sent Goods for Shop 2
我想要 B+C = A 中的值单元格,否则给我一条错误消息。
这是我的代码:
If Range("A1").End(xlDown).Value <> Range("B1").End(xlDown).Value & Range("C1").End(xlDown).Value Then
MsgBox "Error, wrong number of sent goods"
End If
End Sub
【问题讨论】: