index > Visual Studio Tools for Office > oExcel.Workbooks.Open

oExcel.Workbooks.Open


Excel 2003 (11.803.8036) SP2
 
Can anyone please tell me why my worksheet opens as "Read-Only" when I issue 
the following statement(s):

Object oMissing = System.Reflection.Missing.Value;

oBook = oExcel.Workbooks.Open(openFileDialog1.FileName,
                    oMissing, false, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing);



Steve
steclark
I'm afraid you don't provide enough information. I take it this isn't a VSTO project, but automation. In that case, this isn't an appropriate place to ask. Your question really belongs in the office.developer.automation newsgroup. When you ask there, don't forget to include information about the VERSION of Excel you're working with. Also, considering the Read-Only point, provide information about where the workbook is saved (local, network folder, some other media?). Are you absolutely certain the file isn't marked as "Read-Only" at the Windows level? If you open the workbook in the Excel user interface is it still Read-Only?


-- Cindy Meister (Word MVP)
Cindy Meister
reply 2

You can use google to search for other answers

 

More Articles

The customization does not have the required permissions to execu...
Retrieve worksheet from range and call worksheet.range?
VSTO 2005 Won't Install on Vista build 5308
Smart Doc Pane Failes to refresh in WINXP but not in WIN 2K
Text in a Form Field?
Toolbar button on all mail items in Outlook 2003 using VSTO
How To Maximize A Window From The Task Bar Using VBA?
Showing Error while running the Setup
VSTO 2005 COM Add-In Word
Office10 directory and weirdness
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Issues with VSTO 2005
VSTO 2005 Beta2 FAQ
Using InsertXML method?
VSTO Outlook - run-time error occurred l…
win 2000 ,powerpoint 2000 and VS 2005 in…
Filling a ListObject is really slow.
Can destroy active inspector ?
"The project cannot be created"…
tabbing thru a form in word doc, need to…
Modifying Excel menubar
Outlook Add-in doesn't work after instal…
Preventing display of "Unable to lo…
paneClassDC ????
BackgroundWorker problems with VSTO
Possible To Intercept Naming of Workshee…

Hot Articles

VSTO-2 (2003) Word Template code-behind …
VSTO 2005 Word Bookmarks
Is it not possible to update tables with…
Why I can not open remote Office documen…
VSTA: How to handle non-public object wh…
Word/Excel Designer Error in VSTO 2005
Right Click Menu for Contact in OutLook …
Reflection and Excel Toolbars
Manage Scope For Commandbar buttons
specified cast is not valid error when t…
excell parameters
HorizontalAlignment
Fail to add Excel 11.0 to project refere…
VSTO Word Template & Custom Menus/To…
Outlook integration using redemption - c…

Recommend Articles

VS 2003 enterprise developer and vs 2005…
AddIns
Not sure if this is the right place to p…
rtf/wmf question
deploying vsto 2003 excel application
Error: 'null' is not null or an object
Infopath 2007 - Odd Problem with Decimal…
Please help! MS word is being affected!
How to customize more than one Excel wor…
Mail item icons
Help with Word Interop PLEASE!!! - more …
Excel interop The server threw an except…
Problem with COM objecto
Could not load file or assembly 'Microso…
Publishing Error