LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Error indexing worksheet

Can anyone tell me why I'm getting an error here? I'm using Visual Studio
2005

Dim LCV = New Excel._ExcelApplication
LCV = CreateObject("Excel.Application")
Dim LCVWkbk As Excel.Workbook

LCVWkbk = LCV.Workbooks.Open("C:\Documents and Settings\temp.xls")
LCV.Visible = True

Dim LCVSheet As Excel.Worksheet = LCVWkbk.Sheets(1)

I have an error here ^ saying COMException unhandled

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Indexing Anto111 Excel Discussion (Misc queries) 1 July 26th 08 08:01 PM
Tab indexing ibgolfn Excel Discussion (Misc queries) 2 January 16th 08 12:04 AM
Indexing M&M[_2_] Excel Discussion (Misc queries) 1 July 13th 07 07:10 PM
Indexing value fro each new worksheet Corey Excel Worksheet Functions 0 June 22nd 06 12:40 AM
Indexing of Name Charlie Excel Worksheet Functions 1 April 5th 06 01:33 PM


All times are GMT +1. The time now is 09:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"