Alemão, veja se está atendendo
Sub FINALIZARCOMPRA()
'
' FINALIZARCOMPRA Macro
Dim Ultimalinha As Long, iVend As Integer
Sheets("Painel Venda").Activate
iVend = Application.WorksheetFunction.CountIf(Range("H38:H42"), ">0") + 37
Range("H38:R" & iVend).Select
Selection.Copy
Sheets("Relatorio Contas a Receber").Select
Ultimalinha = Range("B65536").End(xlUp).Row + 1 'Range("B" & Rows.Count).End(xlUp).Row + 1
Range("B" & Ultimalinha).Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Sheets("Painel Venda").Select
Application.CutCopyMode = False
iVend = Application.WorksheetFunction.CountIf(Range("B6:B20"), ">0") + 5
Range("B6:R" & iVend).Select
Selection.Copy
Sheets("Relatorio Venda").Select
Ultimalinha = Range("B65536").End(xlUp).Row + 1 'Range("B" & Rows.Count).End(xlUp).Row + 1
Range("B" & Ultimalinha).Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Sheets("Painel Venda").Select
Application.CutCopyMode = False
Range("J24").Select
End Sub
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 28/11/2013 2:58 pm