Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
EDATE
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Markus Glatz  
View profile  
 More options Feb 3 2003, 5:26 am
Newsgroups: microsoft.public.excel.worksheet.functions
From: "Markus Glatz" <MGl...@Amgen.com>
Date: Mon, 3 Feb 2003 02:17:17 -0800
Local: Mon, Feb 3 2003 5:17 am
Subject: EDATE
Hello,

is there a solution to "convert" the "add-in" EDATE
to convert into a VBA-script?

Thanks in advance
Bestr regards
Markus


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
J.E. McGimpsey  
View profile  
 More options Feb 3 2003, 7:06 am
Newsgroups: microsoft.public.excel.worksheet.functions
From: "J.E. McGimpsey" <jemcgimp...@mvps.org>
Date: Mon, 03 Feb 2003 04:56:03 -0700
Local: Mon, Feb 3 2003 6:56 am
Subject: Re: EDATE
If you reference the atpvbaen.xla add-in in your project, you can use
EDATE in your VBA code:

    Public Sub try()
        Debug.Print CDate(edate("3/13/2003", 2))
    End Sub

returns 5/31/2003

If you want to do your own function:

    Public Function EDateToo(baseDate As Date, adder As Integer) As Date
        EDateToo = DateSerial(Year(baseDate), Month(baseDate) + _
                adder + 1, 0)
    End Function

In article <026501c2cb6d$6dd3b520$cef82ecf@TK2MSFTNGXA08>, Markus Glatz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »