Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 102
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 102
Default 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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default 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



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default 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.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Datedif [email protected] Excel Worksheet Functions 3 December 22nd 08 12:30 PM
DateDif Question Rob Excel Discussion (Misc queries) 6 October 18th 07 03:19 PM
=DATEDIF Excel User001 Excel Worksheet Functions 2 February 3rd 06 04:20 PM
DateDif Average? Damn DateDif UTCHELP Excel Worksheet Functions 14 November 17th 05 10:30 AM
=DATEDIF(B14,B4,"m") teeb Excel Discussion (Misc queries) 1 July 20th 05 11:52 PM


All times are GMT +1. The time now is 11:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"