Quite simply - why wont this work?
I'm not getting any errors. I've checked and it's definitely opening/referencing the correct excel file. I've kept it this simple just to see if I can get the basics working... (I can't )

The console is writing out the Not Found message. It's definitely there! I even copied and pasted a load of other 1's around just in case.

Why, oh why???
VB Code:
  1. Imports Excel
  2. Imports Microsoft.Office.Core
  3.  
  4. Private moApp As Excel.Application
  5.  
  6.         moApp = DirectCast(CreateObject("Excel.Application"), Excel.Application)
  7.         moApp.Visible = True
  8.         Dim myFileName As String = "D:\My Documents\helpMe2.xls"
  9.         Dim oWB As Excel.Workbook = moApp.Workbooks.Open(myFileName)
  10.         Dim oSht As Excel.Worksheet = DirectCast(oWB.Sheets("Time"), Excel.Worksheet)
  11.  
  12.         Console.Write("Got here")
  13.         If oSht.Cells(3, 1) Is "1" Then 'found, take items from this row and next row
  14.             Console.Write("Found Number")
  15.             oSht.Cells(5, 6) = "Found"
  16.         Else
  17.             Console.Write("Nothing Found")
  18.         End If
  19.  
  20.         oWB.Close(True, myFileName)
  21.         oSht = Nothing
  22.         oWB = Nothing

I also tried

Cells.Items

.ToString = "1"

Nothing works. Please put me out of my misery.