用VBA代码判断两数区域除10余数相等,或一数加5就两数相等如:SA=0049(3),SA=0909(8)不相等SA=0049+5(8),SA=0909(8)相等如:SA=0209(1),SB=0901(0)不相等SA=0209+5(6),SB=0901(0)不相等又如:SA
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/30 04:04:57
用VBA代码判断两数区域除10余数相等,或一数加5就两数相等如:SA=0049(3),SA=0909(8)不相等SA=0049+5(8),SA=0909(8)相等如:SA=0209(1),SB=0901(0)不相等SA=0209+5(6),SB=0901(0)不相等又如:SA
用VBA代码判断两数区域除10余数相等,或一数加5就两数相等
如:SA=0049(3),SA=0909(8)不相等
SA=0049+5(8),SA=0909(8)相等
如:SA=0209(1),SB=0901(0)不相等
SA=0209+5(6),SB=0901(0)不相等
又如:
SA=2345(4),SB=2340(9)不相等
SA=2345+5(9),SB=2340(9)相等
用VBA代码判断两数区域除10余数相等,或一数加5就两数相等如:SA=0049(3),SA=0909(8)不相等SA=0049+5(8),SA=0909(8)相等如:SA=0209(1),SB=0901(0)不相等SA=0209+5(6),SB=0901(0)不相等又如:SA
请查收.
Public Sub aabb()
For i = 1 To Len([A1])
NA = NA + Val(Mid([A1], i, 1))
Next i
For j = 1 To Len([B1])
NB = NB + Val(Mid([B1], j, 1))
Next j
NA = Right(NA, 1)
NB = Right...
全部展开
Public Sub aabb()
For i = 1 To Len([A1])
NA = NA + Val(Mid([A1], i, 1))
Next i
For j = 1 To Len([B1])
NB = NB + Val(Mid([B1], j, 1))
Next j
NA = Right(NA, 1)
NB = Right(NB, 1)
[C1] = NA
[D1] = NB
End Sub
C1等于 A1中各个数字的和
D1等于 B1中各个数字的和
至于以后如何判断的,实在没看明白你的意思,你自己弄一下吧
收起