Boa Tarde pessoal,
Criei essa macro, que copia a planilha, depois copio por cima só os valores tirando as formulas.
tiro ela para um arquivo novo. depois disso queria que ela salvasse em um diretório específico "C: bla bla" com o nome "F8" - Requisição - "B6".(um formato que transformasse ele em uma arquivo excel leve).
Sub FINALIZAR()
'
' FINALIZAR Macro
'
'
Sheets("PEDIDO").Select
Sheets("PEDIDO").Copy Before:=Sheets(1)
Range("J4").Select
ActiveSheet.Shapes.Range(Array("Button 1", "Button 2")).Select
Selection.Delete
Range("A1").Select
Sheets("PEDIDO (2)").Select
Sheets("PEDIDO (2)").Name = "MIMAKI BR"
Range("A1").Select
Sheets("PEDIDO").Select
Range("B4:B10").Select
Selection.Copy
Sheets("MIMAKI BR").Select
Range("B4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("PEDIDO").Select
Range("F6:G6").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("MIMAKI BR").Select
Range("F6:G6").Select
ActiveSheet.Paste
Sheets("PEDIDO").Select
Range("F8:G8").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("MIMAKI BR").Select
Range("F8:G8").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("PEDIDO").Select
Range("F6:G6").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("MIMAKI BR").Select
Range("F6:G6").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("PEDIDO").Select
Range("F10:G10").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("MIMAKI BR").Select
Range("F10:G10").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("PEDIDO").Select
ActiveWindow.SmallScroll Down:=9
Range("A15:I34").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("MIMAKI BR").Select
Range("A15:I34").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("PEDIDO").Select
ActiveWindow.SmallScroll Down:=15
Range("B39:B46").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("MIMAKI BR").Select
ActiveWindow.SmallScroll Down:=18
Range("B39").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("PEDIDO").Select
ActiveWindow.SmallScroll Down:=12
Range("B48:C68").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("MIMAKI BR").Select
Range("B49").Select
Range("B48").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=-48
Range("A1").Select
Sheets("PEDIDO").Select
ActiveWindow.SmallScroll Down:=-63
Range("A1").Select
Sheets("MIMAKI BR").Select
Application.CutCopyMode = False
Sheets("MIMAKI BR").Move
End Sub
Postado : 03/06/2013 2:46 pm