N
NewToVB
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
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