+ Reply to Thread
Results 1 to 4 of 4

date function in code

  1. #1
    Registered User
    Join Date
    05-11-2007
    Location
    Belgium
    Posts
    68

    date function in code

    I have tested the date function to get the last date in a month in a sheet, it works.

    Please Login or Register  to view this content.
    When I try do include the function in my code along the VBE, the compiler refuse to take the function ?

    Please Login or Register  to view this content.
    I have tried , and ; as syntaxis.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Have you declared lastdatemonth as a variable?

    Are you trying to create a UDF?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    05-11-2007
    Location
    Belgium
    Posts
    68

    Udf

    Please Login or Register  to view this content.
    what do you mean by UDF (undefined function ?)

    its seems that in code, excel only accept date() without arguments ?
    Last edited by matrixknow; 06-04-2007 at 08:11 AM.

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Try to use this instruction:
    Please Login or Register  to view this content.
    ,
    for example, to have data of 7 days ago:
    Please Login or Register  to view this content.
    Regards,
    Antonio

+ 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