V
VBALover
Hi All,
Here is the code:
Set objXL = New Excel.Application
Set objwkb = objXL.Workbooks.Open(datafile)
objwkb.Save '<--- Error in this code
If I get this error, I only need to close the Word and re-open again. Then
there will be no error.
The error not happen all the time. It may happens after I copy the excel to
the same directory.
Thanks for advice.
Regards
Here is the code:
Set objXL = New Excel.Application
Set objwkb = objXL.Workbooks.Open(datafile)
objwkb.Save '<--- Error in this code
If I get this error, I only need to close the Word and re-open again. Then
there will be no error.
The error not happen all the time. It may happens after I copy the excel to
the same directory.
Thanks for advice.
Regards