变量名称是无法动态取值的,只能a1=0,a2=0这样,没有这种用法:a&"1" = 0
考虑使用字典
Dim zd As New Dictionary(Of String, double)
zd.add("a1",0)
zd.add("a2",0)
……
For Each r1 As Row In Tables("工作表").Rows
If r1.checked Then
For js As Integer = 1 To 63
zd("a" & js) = 0
Next
......
next
[此贴子已经被作者于2020/6/30 14:52:12编辑过]