RWayneH
asked on
Workbooks.Open File already exists in this location
Using the following code to open a file. Issue is popup alert that says the file already exists.... do I want to Save? Yes/No/Cancel. When I click Yes it does not open the file, when I press No or Cancel, I get a cannot access file?
I can surpress the Alert, but the file does not open... when I do not surpress it is back to the alert. How do I get around this and just open the file up? Please advise and thanks.
I can surpress the Alert, but the file does not open... when I do not surpress it is back to the alert. How do I get around this and just open the file up? Please advise and thanks.
'Application.DisplayAlerts = False
Workbooks.Open Filename:= _
"\\nahollap548\HP-UFT\ScriptResourceFiles\ProdOrdsOperListSeq.xls"
ASKER
Nope file is closed... Do you have a code that would check? If it is open display it or something? Right now there is nothing that indicates that it is.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
By checking if the file was open first it showed that I was opening the file twice. It was already open.
Thanks for the help.
Thanks for the help.
If it is you could check for that before trying to open it.