Sub setIntvalue(frm As Form, m As Integer, n As Integer, Optional x As Boolean = True)
Dim ctl As String
Dim i As Integer
Dim j As Integer
For i = 1 To m
For j = 1 To n
ctl = "T(" & i & ")_(" & j & ")"
frm.Controls(ctl).Value = x
Debug.Print ctl, x
Next
Next
End Sub
这是ACCESS的写法,EXCEL我不会,提供一个思路吧