Function MOD

M

Microsoft

I am unable to use the MOD Function within a module. The line gets
highlighted in red and does not offer any comments or hint as to why.

However if I use the function within the spreadsheet I get the desired
results.
I looked at the reference section for any unusual entries but found nothing.

I am using office 2003. There is no problem with the syntax

Many thanks
Bernard
 
D

Dave Peterson

Look for MISSING under Tools|References.

When you have missing references, the line that's marked as an error doesn't
have to be the real problem.
 
D

Dick Kusleika

Bernard

Also note that the MOD worksheet function is not available in VBA because
VBA has its own Mod, whose syntax is

Var1 = Var2 Mod Var3

whereas the worksheet function is

=MOD(Var2,Var3)

So it may be a syntax problem.
 
D

Dave Peterson

I was confused by: "... There is no problem with the syntax"

But Alan Beban solved the problem (same solution as yours) in the next thread.
 
D

Dick Kusleika

Dave
But Alan Beban solved the problem (same solution as yours) in the next thread.

Yeah, I saw that *after* I posted. I don't know how I missed it before.

Dick
 
A

Alan Beban

Dick said:
Dave



thread.


Yeah, I saw that *after* I posted. I don't know how I missed it before.

Dick
Well, they don't always show up at the time indicated.

Alan Beban
 
D

Dave Peterson

And I read in order of posting/thread. So I saw Alan's post within moments of
me hitting the send button.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

MOD Function 8
Mod Function 4
help with mod function 11
Mod function 1
SUMIF using value from MOD function 2
MOD function not returning exact zero 2
Using Now() in a Function 2
Googlefinance 12

Top