Dim appExc as New excel.Application
With appExc
.Visible = True
.Workbooks.Open FileName:="C:Cartella1.xlsx"
.Workbooks.Open FileName:= "C: Cartella2.xlsx"
.Workbooks.Open FileName:= "C:Cartella3.xlsx"
.Windows("Cartella2.xlsx").Activate
.Sheets("FoglioCartella2").Select
.Sheets("FoglioCartella2").Copy After:=Workbooks("Cartella1.xlsx").Sheets("FoglioCartella1")
.Windows("Cartella3.xlsx").Activate
.Sheets("FoglioCartella3").Select
.Sheets("FoglioCartella3").Copy After:=Workbooks("Cartella1.xlsx").Sheets("FoglioCartella1")
End With
|