Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
dim g as int, i as string range("a1").value = i g = 10 range("b1").value = i + g
让 A1 = 1 预期 B1 = 11 但它是 10
dim g as int, i as string i = range("a1").value 'assuming that A1 contains 1 g = 10 range("b1").value = i + g
第二行分配是错误的方式
翅膀
由于 i as String var ("1"),它应该是 ..
range("b1").value = val(i) + g