Form4.Label3(i) = a(i, 1) & "X" & 1
For j = 2 To n
Form4.Label3(i) = Form4.Label3(i) & "+" & a(i, j) & "X" & j
Next j
Form4.Label3(i) = Form4.Label3(i) & "=" & b(i)
你把第二行的
If n = 1 Then .....
改为:
If j = 1 Then ....
就行了。
'把第二行换成:
If j=1 then
‘就行了