Llamar macro
Hola, deseo que cuando en una casilla halla un dato concreto, se ejecute una macro ya creada, he hecho esto y no anda.... Alguna sugerencia?
Sub REL401()
'
' REL401 Macro
' Macro grabada el 24/10/2002 por Daniel Tortosa
'
'
Sheets("Hoja1").Select
Range("D3:D4").Select
Selection.Copy
ActiveWindow.SmallScroll ToRight:=32
Range("D3:D4,AP3:AP4").Select
Range("AP3").Activate
ActiveWindow.SmallScroll ToRight:=3
ActiveWindow.ScrollColumn = 1
Range("E8").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = ""
Range("D3:D4").Select
ActiveWindow.SmallScroll ToRight:=32
Range("D3:D4,AP3:AP4").Select
Range("AP3").Activate
ActiveWindow.SmallScroll ToRight:=11
Range("D3:D4,AP3:AP4,AW3:AW4").Select
Range("AW3").Activate
ActiveWindow.SmallScroll ToRight:=39
Range("D3:D4,AP3:AP4,AW3:AW4,CK3:CK4").Select
Range("CK3").Activate
Selection.Copy
Sheets("Hoja2").Select
ActiveSheet.Paste
End Sub
---------------------------------------
Private Sub WOKSHEET_CHANGE()
Sheets("Hoja2").Select
ActiveSheet.Range("C3").Calculate
If C3 = 2401 Then
REL401
End If
Sub REL401()
'
' REL401 Macro
' Macro grabada el 24/10/2002 por Daniel Tortosa
'
'
Sheets("Hoja1").Select
Range("D3:D4").Select
Selection.Copy
ActiveWindow.SmallScroll ToRight:=32
Range("D3:D4,AP3:AP4").Select
Range("AP3").Activate
ActiveWindow.SmallScroll ToRight:=3
ActiveWindow.ScrollColumn = 1
Range("E8").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = ""
Range("D3:D4").Select
ActiveWindow.SmallScroll ToRight:=32
Range("D3:D4,AP3:AP4").Select
Range("AP3").Activate
ActiveWindow.SmallScroll ToRight:=11
Range("D3:D4,AP3:AP4,AW3:AW4").Select
Range("AW3").Activate
ActiveWindow.SmallScroll ToRight:=39
Range("D3:D4,AP3:AP4,AW3:AW4,CK3:CK4").Select
Range("CK3").Activate
Selection.Copy
Sheets("Hoja2").Select
ActiveSheet.Paste
End Sub
---------------------------------------
Private Sub WOKSHEET_CHANGE()
Sheets("Hoja2").Select
ActiveSheet.Range("C3").Calculate
If C3 = 2401 Then
REL401
End If
Respuesta de gualo
1