thanks for all of u the macro now is working properly by putting reume next after err:. Also i changed the
ActiveWorkbook.Close (False) to
workbooks (file).colse (false)
thx again
Pls explaine where to put resume next in the macro, what i know that "resume next" is another kind of fo error...
Anyway here is the macro itself, as I said it opens files in a range that defined by user... thx 4 helping
Sub mmm()
Application.ScreenUpdating = False
Dim date1 As Date...
*My macro is opening certain number of files according to user input to take some data and put them in a table.
*I include "On error .... go to" statement in my macro to bypass the loop when some files are missed
*The macro runs correctly when facing the first error it proberly...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.