Dim xlapp As New Microsoft.Office.Interop.Excel.Application
Dim wrkbook As Microsoft.Office.Interop.Excel.Workbook
Dim wrksheet As Microsoft.Office.Interop.Excel.Worksheet
xlapp.Visible = True
wrkbook = xlapp.Workbooks.Open("some path\abc.xls")
wrksheet = wrkbook.Sheets("Sheet1")
wrksheet.Cells.Find(What:="Rotor", After:=Cells(1, 1), LookIn:=xlValues, MatchCase:=False).Activate()
==========================================================
Hi Guys,
In the above code, i am trying to open an excel sheet and look for different names to see if they are in the sheet...
this code works fine in VBA when written for excel in macros but not working for vb.net
The problem I am having is that for the find function, Cells, xlValues, intellisense says that Cells and xlValues are not declared
Am I supposed to add some add ins or some library to be included for intellisense to accept the syntax of this function..
Please suggest....
thanks
Dim wrkbook As Microsoft.Office.Interop.Excel.Workbook
Dim wrksheet As Microsoft.Office.Interop.Excel.Worksheet
xlapp.Visible = True
wrkbook = xlapp.Workbooks.Open("some path\abc.xls")
wrksheet = wrkbook.Sheets("Sheet1")
wrksheet.Cells.Find(What:="Rotor", After:=Cells(1, 1), LookIn:=xlValues, MatchCase:=False).Activate()
==========================================================
Hi Guys,
In the above code, i am trying to open an excel sheet and look for different names to see if they are in the sheet...
this code works fine in VBA when written for excel in macros but not working for vb.net
The problem I am having is that for the find function, Cells, xlValues, intellisense says that Cells and xlValues are not declared
Am I supposed to add some add ins or some library to be included for intellisense to accept the syntax of this function..
Please suggest....
thanks