Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Workbooks.Open Filename:= _
"C:\Excel Data Extract\AnyFile.xls"
Please read that slowly.A - are you trying to give a choice to the users on what file to open?
NO I AM GIVING USERS THE CHOICE ON WHICH FILE TO OPEN..
B - are you opening all the files regardless of the user.
YES, I AM OPENING ALL FILES..
A - are you trying to give a choice to the users on what file to open?
NO I AM GIVING USERS THE CHOICE ON WHICH FILE TO OPEN..
B - are you opening all the files regardless of the user.
YES, I AM OPENING ALL FILES..
' ....other stuff...
For lngCount = 1 To .FoundFiles.Count
Workbooks.Open (.FoundFiles.Item(lngCount))
If MsgBox(.FoundFiles.Item(lngCount), _
vbOKCancel, "Found files") = vbCancel Then
lngCount = .FoundFiles.Count
End If
Next lngCount
For lngCount = 1 To .FoundFiles.Count
Workbooks.Open (.FoundFiles.Item(lngCount))
' do the code for EACH file here
' it will run on each file...then
' go to the next one
Next lngCount