Hi,

I want to get the average from B2:B4.
Following statement works.
objExcel.Cells(7, 2).Formula = "=AVERAGE(B2:B4)"    




However instead of using B2 directly how can I use a variable?

*Example:*
ColumnName = "B2"
objExcel.Cells(7, 2).Formula = "=AVERAGE(ColumnName:B4)"       'this 
doesn't work, what am I doing wrong


Please Help

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to