Gianluigi Padovano
2023-01-30 17:29:04 UTC
Ciao a tutti, ho trovato questa scrittura che fa al mio caso. L'unico problema è che mi guarda l'intero foglio (For Each xCB In ActiveSheet.CheckBoxes), mentre dovrebbe guardare solo la colonna A.
Come risolvo?
Grazie mille per l'aiuto
Sub LinkChecks()
'Update by Extendoffice
Dim xCB
Dim xCChar
i = 1
xCChar = "A"
For Each xCB In ActiveSheet.CheckBoxes
If xCB.Value = 1 Then
Cells(i, xCChar).Value = True
Else
Cells(i, xCChar).Value = False
End If
xCB.LinkedCell = Cells(i, xCChar).Address
i = i + 1
Next xCB
End Sub
Come risolvo?
Grazie mille per l'aiuto
Sub LinkChecks()
'Update by Extendoffice
Dim xCB
Dim xCChar
i = 1
xCChar = "A"
For Each xCB In ActiveSheet.CheckBoxes
If xCB.Value = 1 Then
Cells(i, xCChar).Value = True
Else
Cells(i, xCChar).Value = False
End If
xCB.LinkedCell = Cells(i, xCChar).Address
i = i + 1
Next xCB
End Sub