Calculating the difference between hours

  • Thread starter Thread starter Sambusa
  • Start date Start date
S

Sambusa

Hi,
I have add "HoursWorked(A1,A2,K1:K10)" to cell where i want the resul
to be "after i change the reference" but it's gave me this error ( Su
or Function not defined )





Thanks
SAM
 
HoursWorked is not an Excel function so i guess it comes from an addin or you
wrote it yourself.
1. In the vba editor, do a compile (menu Debug > Compile). Once no error is
returned, test the function:
2. You could run it from a Sub to test it:
Sub Test()
dim v
v= HoursWorked(Range(A1),Range(A2),Range(K1:K10))
debug.Print TypeName(v), v
End Sub
Change values in these ranges and run test again.

Regards,
Sebastien
 

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

Back
Top