Open Excel File

Sub aa1()
Dim xFilePath As Variant
Dim xlFiles As Variant
xFilePath = "E:\"
xlFiles = Dir(xFilePath & "*.xls")
Do While xlFiles <> ""
Workbooks.Open Filename:=xFilePath & xlFiles
xlFiles = Dir
Loop
End Sub

Comments

Popular posts from this blog

business intelligence reporting tools

Adjust The Data Range In Pivot Table(EXCEL)