Macros De Excel
Este es el macro con el que trabaja todos los dias:
Sub VariaciónFogafín()
'
' VariaciónFogafín Macro
' Sirve para hacer el cuadro de V.Fogafín que se envía a los centros.
'
'
Windows("PRUEBA2530.XLS").Activate
Range("B2:F603").Select
Selection.ClearContents
Range("B2").Select
Windows("2530EXT.21MAR.XLS").Activate
Range("A2:E581").Select
Selection.Copy
Windows("PRUEBA2530.XLS").Activate
ActiveSheet.Paste
Range("B2").Select
Windows("buscador.xls").Activate
Sheets("Donde").Select
Range("A2:B536").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("A2").Select
Windows("PRUEBA2530.XLS").Activate
Range("A2:A603").Select
Selection.Copy
Windows("buscador.xls").Activate
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("B2").Select
Windows("PRUEBA2530.XLS").Activate
Application.CutCopyMode = False
Range("E2:E603").Select
Selection.Copy
Windows("buscador.xls").Activate
ActiveSheet.Paste
Range("B2").Select
Sheets("Que Busca").Select
ActiveWindow.LargeScroll Down:=-1
Range("C910").Select
ActiveWindow.LargeScroll Down:=-1
Range("C887").Select
ActiveWindow.LargeScroll Down:=-1
Range("C864").Select
ActiveWindow.LargeScroll Down:=-1
Range("C841").Select
ActiveWindow.LargeScroll Down:=-1
Range("C818").Select
ActiveWindow.LargeScroll Down:=-1
Range("C795").Select
ActiveWindow.LargeScroll Down:=-1
Range("C772").Select
ActiveWindow.LargeScroll Down:=-1
Range("C749").Select
ActiveWindow.LargeScroll Down:=-1
Range("C726").Select
ActiveWindow.LargeScroll Down:=-1
Range("C703").Select
ActiveWindow.LargeScroll Down:=-1
Range("C680").Select
ActiveWindow.LargeScroll Down:=-1
Range("C657").Select
ActiveWindow.LargeScroll Down:=-1
Range("C634").Select
ActiveWindow.LargeScroll Down:=-1
Range("C611").Select
ActiveWindow.LargeScroll Down:=-1
Range("C588").Select
ActiveWindow.LargeScroll Down:=-1
Range("C565").Select
ActiveWindow.LargeScroll Down:=-1
Range("C542").Select
ActiveWindow.LargeScroll Down:=-1
Range("C519").Select
ActiveWindow.LargeScroll Down:=-1
Range("C496").Select
ActiveWindow.LargeScroll Down:=-1
Range("C473").Select
ActiveWindow.LargeScroll Down:=-1
Range("C450").Select
ActiveWindow.LargeScroll Down:=-1
Range("C427").Select
ActiveWindow.LargeScroll Down:=-1
Range("C404").Select
ActiveWindow.LargeScroll Down:=-1
Range("C381").Select
ActiveWindow.LargeScroll Down:=-1
Range("C358").Select
ActiveWindow.LargeScroll Down:=-1
Range("C335").Select
ActiveWindow.LargeScroll Down:=-1
Range("C312").Select
ActiveWindow.LargeScroll Down:=-1
Range("C289").Select
ActiveWindow.LargeScroll Down:=-1
Range("C266").Select
ActiveWindow.LargeScroll Down:=-1
Range("C243").Select
ActiveWindow.LargeScroll Down:=-1
Range("C220").Select
ActiveWindow.LargeScroll Down:=-1
Range("C197").Select
ActiveWindow.LargeScroll Down:=-1
Range("C174").Select
ActiveWindow.LargeScroll Down:=-1
Range("C151").Select
ActiveWindow.LargeScroll Down:=-1
Range("C128").Select
ActiveWindow.LargeScroll Down:=-1
Range("C105").Select
ActiveWindow.LargeScroll Down:=-1
Range("C82").Select
ActiveWindow.LargeScroll Down:=-1
Range("C59").Select
ActiveWindow.LargeScroll Down:=-1
Range("C36").Select
ActiveWindow.LargeScroll Down:=-1
Range("C13").Select
ActiveWindow.LargeScroll Down:=-1
Range("C2:C955").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("C2").Select
Application.Run "buscador.xls!Buscar1"
Range("C2").Select
Sheets("Variación").Select
Range("E6").Select
ActiveCell.FormulaR1C1 = " Ext."
Range("E7:E960").Select
Selection.ClearContents
Range("D7:D960").Select
Selection.ClearContents
Range("E7").Select
Sheets("Que Busca").Select
Range("C2:C955").Select
Selection.Copy
Sheets("Variación").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("E7").Select
Windows("PRUEBA2530.XLS").Activate
Range("B2:F603").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("B2").Select
Windows("2530PROV.28MAR..XLS").Activate
Range("A2:E570").Select
Selection.Copy
Windows("PRUEBA2530.XLS").Activate
ActiveSheet.Paste
Range("B2").Select
Windows("buscador.xls").Activate
Sheets("Donde").Select
Range("A2:B603").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("A2").Select
Windows("PRUEBA2530.XLS").Activate
Range("A2:A603").Select
Selection.Copy
Windows("buscador.xls").Activate
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("B2").Select
Windows("PRUEBA2530.XLS").Activate
Application.CutCopyMode = False
Range("D2:D603").Select
Selection.Copy
Windows("buscador.xls").Activate
ActiveSheet.Paste
Range("B2").Select
Sheets("Que Busca").Select
Range("C2:C955").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("C2").Select
Application.Run "buscador.xls!Buscar1"
Range("C2").Select
Sheets("Variación").Select
Range("D7").Select
Sheets("Que Busca").Select
Range("C2:C955").Select
Selection.Copy
Sheets("Variación").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("A7:I960").Select
Application.CutCopyMode...
Sub VariaciónFogafín()
'
' VariaciónFogafín Macro
' Sirve para hacer el cuadro de V.Fogafín que se envía a los centros.
'
'
Windows("PRUEBA2530.XLS").Activate
Range("B2:F603").Select
Selection.ClearContents
Range("B2").Select
Windows("2530EXT.21MAR.XLS").Activate
Range("A2:E581").Select
Selection.Copy
Windows("PRUEBA2530.XLS").Activate
ActiveSheet.Paste
Range("B2").Select
Windows("buscador.xls").Activate
Sheets("Donde").Select
Range("A2:B536").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("A2").Select
Windows("PRUEBA2530.XLS").Activate
Range("A2:A603").Select
Selection.Copy
Windows("buscador.xls").Activate
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("B2").Select
Windows("PRUEBA2530.XLS").Activate
Application.CutCopyMode = False
Range("E2:E603").Select
Selection.Copy
Windows("buscador.xls").Activate
ActiveSheet.Paste
Range("B2").Select
Sheets("Que Busca").Select
ActiveWindow.LargeScroll Down:=-1
Range("C910").Select
ActiveWindow.LargeScroll Down:=-1
Range("C887").Select
ActiveWindow.LargeScroll Down:=-1
Range("C864").Select
ActiveWindow.LargeScroll Down:=-1
Range("C841").Select
ActiveWindow.LargeScroll Down:=-1
Range("C818").Select
ActiveWindow.LargeScroll Down:=-1
Range("C795").Select
ActiveWindow.LargeScroll Down:=-1
Range("C772").Select
ActiveWindow.LargeScroll Down:=-1
Range("C749").Select
ActiveWindow.LargeScroll Down:=-1
Range("C726").Select
ActiveWindow.LargeScroll Down:=-1
Range("C703").Select
ActiveWindow.LargeScroll Down:=-1
Range("C680").Select
ActiveWindow.LargeScroll Down:=-1
Range("C657").Select
ActiveWindow.LargeScroll Down:=-1
Range("C634").Select
ActiveWindow.LargeScroll Down:=-1
Range("C611").Select
ActiveWindow.LargeScroll Down:=-1
Range("C588").Select
ActiveWindow.LargeScroll Down:=-1
Range("C565").Select
ActiveWindow.LargeScroll Down:=-1
Range("C542").Select
ActiveWindow.LargeScroll Down:=-1
Range("C519").Select
ActiveWindow.LargeScroll Down:=-1
Range("C496").Select
ActiveWindow.LargeScroll Down:=-1
Range("C473").Select
ActiveWindow.LargeScroll Down:=-1
Range("C450").Select
ActiveWindow.LargeScroll Down:=-1
Range("C427").Select
ActiveWindow.LargeScroll Down:=-1
Range("C404").Select
ActiveWindow.LargeScroll Down:=-1
Range("C381").Select
ActiveWindow.LargeScroll Down:=-1
Range("C358").Select
ActiveWindow.LargeScroll Down:=-1
Range("C335").Select
ActiveWindow.LargeScroll Down:=-1
Range("C312").Select
ActiveWindow.LargeScroll Down:=-1
Range("C289").Select
ActiveWindow.LargeScroll Down:=-1
Range("C266").Select
ActiveWindow.LargeScroll Down:=-1
Range("C243").Select
ActiveWindow.LargeScroll Down:=-1
Range("C220").Select
ActiveWindow.LargeScroll Down:=-1
Range("C197").Select
ActiveWindow.LargeScroll Down:=-1
Range("C174").Select
ActiveWindow.LargeScroll Down:=-1
Range("C151").Select
ActiveWindow.LargeScroll Down:=-1
Range("C128").Select
ActiveWindow.LargeScroll Down:=-1
Range("C105").Select
ActiveWindow.LargeScroll Down:=-1
Range("C82").Select
ActiveWindow.LargeScroll Down:=-1
Range("C59").Select
ActiveWindow.LargeScroll Down:=-1
Range("C36").Select
ActiveWindow.LargeScroll Down:=-1
Range("C13").Select
ActiveWindow.LargeScroll Down:=-1
Range("C2:C955").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("C2").Select
Application.Run "buscador.xls!Buscar1"
Range("C2").Select
Sheets("Variación").Select
Range("E6").Select
ActiveCell.FormulaR1C1 = " Ext."
Range("E7:E960").Select
Selection.ClearContents
Range("D7:D960").Select
Selection.ClearContents
Range("E7").Select
Sheets("Que Busca").Select
Range("C2:C955").Select
Selection.Copy
Sheets("Variación").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("E7").Select
Windows("PRUEBA2530.XLS").Activate
Range("B2:F603").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("B2").Select
Windows("2530PROV.28MAR..XLS").Activate
Range("A2:E570").Select
Selection.Copy
Windows("PRUEBA2530.XLS").Activate
ActiveSheet.Paste
Range("B2").Select
Windows("buscador.xls").Activate
Sheets("Donde").Select
Range("A2:B603").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("A2").Select
Windows("PRUEBA2530.XLS").Activate
Range("A2:A603").Select
Selection.Copy
Windows("buscador.xls").Activate
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("B2").Select
Windows("PRUEBA2530.XLS").Activate
Application.CutCopyMode = False
Range("D2:D603").Select
Selection.Copy
Windows("buscador.xls").Activate
ActiveSheet.Paste
Range("B2").Select
Sheets("Que Busca").Select
Range("C2:C955").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("C2").Select
Application.Run "buscador.xls!Buscar1"
Range("C2").Select
Sheets("Variación").Select
Range("D7").Select
Sheets("Que Busca").Select
Range("C2:C955").Select
Selection.Copy
Sheets("Variación").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("A7:I960").Select
Application.CutCopyMode...
1 Respuesta
Respuesta de t4373125
1