Home All Groups Group Topic Archive Search About

can only open read-only Excel file from VB

Author
17 Dec 2006 11:45 AM
Ultima
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(SaveChanges:=True)

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

Author
17 Dec 2006 4:54 PM
vbnetdev
I need more code showing what it is you are doing during this process.

Show quoteHide quote
"Ultima" <ultima_***@hotmail.com> wrote in message
news:1166355955.526353.303530@79g2000cws.googlegroups.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(SaveChanges:=True)
>
> yet I still get this read-only problem. Any ideas? Thanks!!
>