i am connecting to excell via Automation
this is the basic code i am using
my problem is that if the range is formated as text it returns 0.
how can i get access to take it as a value
thank you
this is the basic code i am using
Code:
dim Xcell As Excel.Application
Set Xcell = CreateObject("Excel.Application")
Xcell.Workbooks.Open Path & "\" & ClaimNumber
amt = Xcell.WorksheetFunction.Sum(Xcell.Worksheets(1).Range(rst!Amount))
how can i get access to take it as a value
thank you