View Single Post
 
Old 07-25-2018, 07:44 AM
Guimenez Guimenez is offline Windows 10 Office 2013
Advanced Beginner
 
Join Date: Jan 2017
Posts: 33
Guimenez is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
Good point Paul

I wouldn't normally create the xlApp in the same line as the declaration of the variable. Could that be the issue?

This thread http://www.vbforums.com/showthread.p...ice-pack-error seems to encounter a similar error and potentially relates to an upgraded version of Excel causing confusion with the one line declaration and creation of the application object.

I've also encountered a problem recently whereby the Dir command fails if the file is present BUT has the Hidden attribute set. For that one I had to use FileSystemObject instead to test for the file. I'm not saying that is the problem in this case.
Maybe the problem it's that (new update of excel)
Do you know what can i change to try it?
Thanks