469,643 Members | 1,918 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,643 developers. It's quick & easy.

can only open read-only Excel file from VB

I have searched the group and it seems this question has been asked and
answered before, yet I still can't fix it after applying the answers I
found.

Basically, when I open an existing Excel file, make some changes and
save it, I get an error saying that this file is opened as read-only.

I have
myExcelApplication.Workbooks.Open(ExcelFileName, , ReadOnly:=False)
and
myExcelApplication.ActiveWorkbook.Close(SaveChange s:=True)

yet I still get this read-only problem. Any ideas? Thanks!!

Dec 17 '06 #1
1 1788
I need more code showing what it is you are doing during this process.

"Ultima" <ul********@hotmail.comwrote in message
news:11**********************@79g2000cws.googlegro ups.com...
>I have searched the group and it seems this question has been asked and
answered before, yet I still can't fix it after applying the answers I
found.

Basically, when I open an existing Excel file, make some changes and
save it, I get an error saying that this file is opened as read-only.

I have
myExcelApplication.Workbooks.Open(ExcelFileName, , ReadOnly:=False)
and
myExcelApplication.ActiveWorkbook.Close(SaveChange s:=True)

yet I still get this read-only problem. Any ideas? Thanks!!

Dec 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by wk6pack | last post: by
10 posts views Thread by Verde | last post: by
13 posts views Thread by Blue | last post: by
2 posts views Thread by Dennis C. Drumm | last post: by
8 posts views Thread by eastcoastguyz | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.