johncollier1
Registered User.
- Local time
- Today, 15:46
- Joined
- Mar 17, 2013
- Messages
- 17
Hi Guys
I'm trying to use this code snippet to use the excell median function to work out the Median value from a number of feilds in a record
I'm trying to use this code snippet to use the excell median function to work out the Median value from a number of feilds in a record
Code:
Sub xlMedian()
Dim obj As Excel.Application
Set obj = CreateObject("Excel.Application")
MsgBox obj.Application.Median(1, 2, 5, 8, 12, 13)
obj.Quit Set obj = Nothing End Sub
[CODE]
do I have to create an variable or array of all the fields or can I just substitute the highlighted numbers for field names?
O' and what will happen if some of the fields in the record are null
will they be ignored, count as zero or cause an error?
Cheers for looking guys
John