Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editing Excel file

Status
Not open for further replies.

eclipsed82

Programmer
Dec 30, 2004
7
US
Hey guys... I've been editing an already existent excel file through VBA in access. For some reason though, when I want to go see the changes and open up the xls file, I always get the messagebox saying the file is read-only and asks me if i want to read-only or notify or cancel.. Also, I'm using another Excel file that has data I need to read in order to edit the other excel file, but whenever I open that file as well, it says it's a Read-only.. These files didn't begin as read-only.. They only turned out to be after I run the code. Can someone tell me why this is happening and how to get rid of this??
 
Code? I don't see any code. . . if you think that's what made your files read-only then we need to see it.

VBAjedi [swords]
 
If you are accessing a file with VBA from one Microsoft Office program to another it is very easy to forget to close the executable that is used to perform this as they are not always visible. Use Ctrl Alt Delete to see if there are more instances of Access and Excel running than you have visually open. Close the superfluous ones and see if that solves your Read-Only problem. If it does, go back to your code and close instances that you have opened with the code after they have been used.

Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top