Im trying to do the following
but I get a System.Runtime.InteropServices.COMException saying "Member not found" on Line For Each xlCell In xlRange.Cells
Any Ideas?
Code:
Dim xlRange As Excel.Range
Dim xlCell As Object
xlRange = xlbook.Sheets(sSheetname).Range(sRange)
For Each xlCell In xlRange.Cells
Do Something
Next xlCell
but I get a System.Runtime.InteropServices.COMException saying "Member not found" on Line For Each xlCell In xlRange.Cells
Any Ideas?