It sets me a red line when i remove the first I of IIF... but when I click debug, I see theat the value of i = 0 when it should be equal the array in my list...
Sub RAPPORT1()
Dim WS As Worksheet
Dim Para As Variant
Dim i As Integer
Dim a As Integer
Set WS = ActiveSheet
Para = Array(2, 3, 4, 5, 6, 11, 12)
For i = LBound(Para) To UBound(Para)
a = WS.Shapes("BtnRAP1P" & i).TopLeftCell.Row
WS.Shapes("BtnRAP1P" & i).Visible = IIf(WS.Range("L" & a).Value = FAUX, True, False)
Next i
End Sub
Is it possible that the info doesn't communicate from the array to the shape TopLeftCell.Row request ?
Bookmarks