Re: How to open an excel file
Hugh Brown <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
Workbook.Sheets is an array of sheets, no? You probably mean something like .ActiveSheet. Steve Abaffy <[email protected]> wrote: Ok that got me past that problem but I have new one. Here is the code: [...] private Microsoft.Office.Interop.Excel._Worksheet Sheets; [...] Sheets = (Microsoft.Office.Interop.Excel._Worksheet)Workbook.Sheets; //Error Here Range = Sheets.get_Range("A1", "AZ1"); } This complies but errors out at the point shown What am I doing wrong, this really shouldn't this hard.