-1

i have a problem when i try to open a file .xlxs in a public disk P: with VBA Code. The file show me a message "please try again later - ERROR 1004". Many user use this file and this error is frequently usual. There is a solution for this ?

I think in copy the file and paste to my desktop but that is a lot of wasted time because is a large file.

Workbooks.Open filename:=nameofmyfile, Notify:=True, ReadOnly:=True

enter image description here

2
  • Do a loop to continue trying to open the file. Commented Oct 12, 2023 at 13:35
  • Honestly, Excel is not a good front end program. If many users are expected to simultaneously use and update a file, any kind of database solution is going to be better suited (even if it's as simple as using MS Access) Commented Oct 12, 2023 at 14:00

1 Answer 1

1

Try below and let us know if it works.

Use shared workbooks with different versions of Excel

https://learn.microsoft.com/en-us/office/troubleshoot/excel/use-shared-workbook

Sign up to request clarification or add additional context in comments.

1 Comment

when somebody is using the file, the name of the file use this symbols "∼$". I modified my code and i search a the second old file and that symbols no disturb my code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.