Bom dia!!
Veja se ajuda..
Cuidado com o nome da paste era New folder (3) eu alterei para New folder
Option Explicit
Sub AleVBA_15843V2()
Dim sh As Worksheet
Dim owbk As Workbook
Application.DisplayAlerts = False
Application.ScreenUpdating = 0
Set sh = Sheets("Sheet1")
Application.DisplayAlerts = False
Workbooks.Open Filename:=Left(ThisWorkbook.Path, InStrRev(ThisWorkbook.Path, "")) & "New folderArquivo 1.xlsx"
Range("A2", Range("D" & Rows.Count).End(xlUp)).Copy
sh.Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues
Workbooks("Arquivo 1.xlsx").Close
Workbooks.Open Filename:=Left(ThisWorkbook.Path, InStrRev(ThisWorkbook.Path, "")) & "New folderArquivo 2"
Range("A2", Range("D" & Rows.Count).End(xlUp)).Copy
sh.Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues
Workbooks("Arquivo 2.xlsx").Close
Application.ScreenUpdating = 1
End Sub
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 19/05/2015 5:16 am