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
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
Post a Comment