label de tableau dans des label.text en VBA

The solution for “label de tableau dans des label.text en VBA” can be found here. The following code will assist you in solving the problem.

Sub tableaux()
Dim tableauLabel As Label(,) = {{Label1, Label2, Label3}, {Label4, Label5, Label6}, {Label7, Label8, Label9}}
‘ il y avait une virgule en trop entre les deux dernières accolades
Dim TA(,) As String = New String(2, 2) {{“A”, “B”, “C”}, {“a”, “b”, “c”}, {“c”, “d”, “e”}}
Dim i As Long
Dim j As Long
For i = 0 To 2
For j = 0 To 2
tableauLabel(i, j).Text = TA(i, j)
Next j
Next i
End Sub

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts