You are on page 1of 1

SANT OFFICE

Al subscribirte realmente ayudas al canal a


realizar mas videos. Muchas gracias!

Sub Combinar_hojas

‘SANT OFFICE Youtube thank you for Subscribing

Path = ““

Filename = Dir(Path & “*.xls“)

Do while Filename <> “”

Workbooks.Open Filename :=Path & Filename, Readonly :=True

For each Sheet in ActiveWorkbook.Sheets

Sheet.copy After:=ThisWorkbook.Sheets(1)

Next Sheet

Workbooks (Filename).Close

Filename = Dir()

Loop

End Sub

You might also like