+ Reply to Thread
Results 1 to 3 of 3

Duedate not working with cells with formulas

Hybrid View

  1. #1
    Forum Contributor unley's Avatar
    Join Date
    11-27-2008
    Location
    South Australia
    MS-Off Ver
    MS Office 2007
    Posts
    253

    Duedate not working with cells with formulas

    Is there any way of making duedate works with the cells that has forumlas?

    In range D2:D7 there are formulas with dates where message should return saying please check the date which is overdue but the codes does not work

    In range D8:D11, these dates are normal without formulas and works with the code

    DueDateFail.xls

    If I change the code in Sheet1 to D2:D7 the codes won't work but do work with D8:D11 because the dates in D8:D11 don't have the formulas like D2:D7 has

    Thanks
    Last edited by unley; 10-13-2009 at 08:51 PM.

  2. #2
    Forum Contributor
    Join Date
    10-08-2006
    Location
    Walnut, CA
    MS-Off Ver
    2003,2010, Office 365
    Posts
    114

    Re: Duedate not working with cells with formulas

    Hi,
    Change
    For Each Cell In Range("d2:d11").SpecialCells(xlCellTypeConstants)
    to
    For Each Cell In Range("d2:d11")
    and your code should work. Cells contain fomula will not be evaluated if you use SpecialCells(xlCellTypeConstants)

    Tony

  3. #3
    Forum Contributor unley's Avatar
    Join Date
    11-27-2008
    Location
    South Australia
    MS-Off Ver
    MS Office 2007
    Posts
    253

    Re: Duedate not working with cells with formulas

    Yep, that fixed it alright. My, I always learn the hard way.

    Thank you TonyS for your time, much appreciated

    Cheers mate

+ 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