Ejecutar macro si alguna celda en el rango cambia
Tengo un rango con fórmulas y quisiera que se ejecute una macro al cambiar algún valor del mismo.
Fórmula matricial del rango
{SI.ERROR(INDICE($B$1:$B$104;K.ESIMO.MENOR(SI(C$2=$A$1:$A$104;FILA($B$1:$B$104)-MIN(FILA($A$1:$A$104))+1;"");FILA()-1));)}'Está macro funciona si los cambios en las celdas no son fórmulas
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
' The variable KeyCells contains the cells that will
' cause an alert when they are changed.
Set KeyCells = Range("C2:N10")
If Not Application.Intersect(KeyCells, Range(Target.Address)) _
Is Nothing Then
' Display a message when one of the designated cells has been
' changed.
' Place your code here.
MsgBox "Cell " & Target.Address & " has changed."
Call Actualizar_columna
End If
End Sub
2 Respuestas
Respuesta de Abraham Valencia
Respuesta de Dante Amor
1


