ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Short question on Datedif (https://www.excelbanter.com/excel-worksheet-functions/240121-short-question-datedif.html)

Basta1980

Short question on Datedif
 
Hi,

See code below. When I run macro I get 'compile error: Sub or Function not
defined'. What am I doing wrong here?!

Regards,

Basta1980

Per Jessen

Short question on Datedif
 
Hi

You forgot to post the code.

Regards,
Per

"Basta1980" skrev i meddelelsen
...
Hi,

See code below. When I run macro I get 'compile error: Sub or Function not
defined'. What am I doing wrong here?!

Regards,

Basta1980



Basta1980

Short question on Datedif
 
Per,

I'm sorry, still early morning here in the Netherlands;

MsgBox = datedif(a1, b1, "y")

Regards

"Per Jessen" wrote:

Hi

You forgot to post the code.

Regards,
Per

"Basta1980" skrev i meddelelsen
...
Hi,

See code below. When I run macro I get 'compile error: Sub or Function not
defined'. What am I doing wrong here?!

Regards,

Basta1980




Jacob Skaria

Short question on Datedif
 
In VBA the function is DATEDIFF() and not DATEDIF()

MsgBox DateDiff("yyyy", Range("A1"), Range("B1"))

If this post helps click Yes
---------------
Jacob Skaria


"Basta1980" wrote:

Per,

I'm sorry, still early morning here in the Netherlands;

MsgBox = datedif(a1, b1, "y")

Regards

"Per Jessen" wrote:

Hi

You forgot to post the code.

Regards,
Per

"Basta1980" skrev i meddelelsen
...
Hi,

See code below. When I run macro I get 'compile error: Sub or Function not
defined'. What am I doing wrong here?!

Regards,

Basta1980




OutsideObserver

Short question on Datedif
 
On Wed, 19 Aug 2009 09:36:58 +0200, "Per Jessen"
wrote:

Hi

You forgot to post the code.

Regards,
Per



And here I thought I was going to read a pithy reply.


All times are GMT +1. The time now is 02:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com