i can get a single value from a worksheet using vb.net and excel.
q)How do i get a range of values eg A2 to A5 and print them out eg with a msgbox. I know i can use the cells command but i want a range command where specify excel cell range.
'MyString = XL.Cells(4, 1).Value
MyString = XL.Range("A2", "A5").Value 'error
MsgBox(MyString )
q)How do i get a range of values eg A2 to A5 and print them out eg with a msgbox. I know i can use the cells command but i want a range command where specify excel cell range.
'MyString = XL.Cells(4, 1).Value
MyString = XL.Range("A2", "A5").Value 'error
MsgBox(MyString )
Comment