View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
speidlbacsi speidlbacsi is offline
external usenet poster
 
Posts: 1
Default How to use Excel formulas in VBA


try like this

Sub avera()
Ran = Range(Cells(1, 1), Cells(14, 1))
T = Application.WorksheetFunction.Average(Ran)
Cells(15, 1) = T
End Sub


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/