+ Reply to Thread
Results 1 to 2 of 2

How do you use the Excel EOMONTH function in VBA?

  1. #1
    Registered User
    Join Date
    01-21-2004
    Posts
    3

    How do you use the Excel EOMONTH function in VBA?

    I often use Excel functions in VBA:

    Application.WorksheetFunction.Sum
    Application.WorksheetFunction.Average

    etc


    I cannot seem to get this to work when using the EMOMONTH function. Is this because it is an addin and must be referenced differently?

    Thnx

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    considering A1 has the date and A2 has the nos of months, use
    Evaluate("=EOMONTH(A1,A2)") in your vba, for e.g.

    Range("A3") = Evaluate("=EOMONTH(A1,A2)")

    - Mangesh

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1