OK, this sure sounds like homework to me.
jigsaw117, wake up and think! Don't be so lazy (your words).
This took under a minute to write and test:
'----------------------
Public Function divisor(pNumber As Long) As Long
Dim i As Long
Dim tmp As Long
For i = pNumber To 1 Step -1
If pNumber Mod i = 0 Then
'Debug.Print i
tmp = tmp + i
End If
Next
divisor = tmp
End Function
'----------------------
--
Steve S
--------------------------------
"Veni, Vidi, Velcro"
(I came; I saw; I stuck around.)
jigsaw117 via AccessMonster.com said:
oooooo...i knew that...
um ok like
n is a variable
takes the divisors of n and adds them up.
so if n is 12, 1 + 2 + 3 + 4 + 6 + 12 = 28
then i would just assign an integer for the answer
Dave was asking you to explain what you mean by "a divisor function".
If you explain what you want, odds are someone can help you.
nope, ive already tried that
[quoted text clipped - 4 lines]
help would be much appreciated