Hello, is there a way to pass a control array to a function?
i tried the following which works with normal arrays but not control
arrays:(
Private Sub Click1_Click()
Calc txtControlArray , txtSingleContro l
End Sub
Private Sub Calc(L() As Control, Total As Control)
Dim x As Integer
Total = ""
For x = 0 To L.UBound
Total = Val(Total) + Val(L(x))
Next
End Sub
i tried the following which works with normal arrays but not control
arrays:(
Private Sub Click1_Click()
Calc txtControlArray , txtSingleContro l
End Sub
Private Sub Calc(L() As Control, Total As Control)
Dim x As Integer
Total = ""
For x = 0 To L.UBound
Total = Val(Total) + Val(L(x))
Next
End Sub
Comment