Código:
Dim ws As Worksheet
Set ws = ThisWorkbook.ActiveSheet
With ws
If .Range("Vinculo").Value = True Then
'Condiciones para boton falso
.Range("Vinculo").Value = False
.Shapes("Leyenda").TextFrame.Characters.Text = "OFF"
.Shapes("Leyenda").TextFrame2.TextRange.ParagraphFormat.Alignment = msoAlignRight
.Shapes("Fondo").Fill.ForeColor.RGB = RGB(192, 0, 0)
.Shapes("Boton").Left = .Shapes("Fondo").Left + .Shapes("Fondo").Width - .Shapes("Boton").Width - 2
Else
'Condiciones para boton verdadero
.Range("Vinculo").Value = True
.Shapes("Leyenda").TextFrame.Characters.Text = "ON"
.Shapes("Leyenda").TextFrame2.TextRange.ParagraphFormat.Alignment = msoAlignLeft
.Shapes("Fondo").Fill.ForeColor.RGB = RGB(0, 176, 80)
.Shapes("Boton").Left = .Shapes("Fondo").Left + 2
End If
End With
End Sub