
December 24th, 2003, 08:26 PM
|
|
Junior Member
|
|
Join Date: Dec 2003
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Stuck on Excel exporting to VB
How do you import an Excel cell into a VB label using Excel 2002 and VB .Net? For example import cell E22 with the value "=sum(E1:E21)" from "test.xls" to "labelsum.text". If I use this "labelsum.text = xlSheet.Cells(22, 5)" then it will said that I cannot set range to string. I've tried Dim sum as integer then "sum = xlSheet.Cells(22, 5)" which doesn't work either. Please help.
|