+ Reply to Thread
Results 1 to 6 of 6

Macro for date highlighting....

  1. #1
    Registered User
    Join Date
    08-01-2005
    Posts
    14

    Question Macro for date highlighting....

    I am trying to create a macro that will go through col. B and highlight anything 14-29 days old in Yellow, and anything 29 days or older in red. Can Anyone suggest a macro for me? I have created a formula to do so but when I try to copy data from a PCOM session and paste the data into the spreedsheet the formula does not work. I have to manually reenter date for the highlighting to work. Any Help would be appreciated on this one.

  2. #2
    Bob Phillips
    Guest

    Re: Macro for date highlighting....

    You don't need a macro, use conditional formatting.

    Select the cells, and use a formula of
    =AND(B2<TODAY()-14,B2>=TODAY()-29)

    and set a pattern colour

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "mauddib13" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I am trying to create a macro that will go through col. B and highlight
    > anything 14-29 days old in Yellow, and anything 29 days or older in
    > red. Can Anyone suggest a macro for me? I have created a formula to do
    > so but when I try to copy data from a PCOM session and paste the data
    > into the spreedsheet the formula does not work. I have to manually
    > reenter date for the highlighting to work. Any Help would be
    > appreciated on this one.
    >
    >
    > --
    > mauddib13
    > ------------------------------------------------------------------------
    > mauddib13's Profile:

    http://www.excelforum.com/member.php...o&userid=25785
    > View this thread: http://www.excelforum.com/showthread...hreadid=391908
    >




  3. #3
    Registered User
    Join Date
    08-01-2005
    Posts
    14
    I tried using that formula but it does not work correctly. Not sure if I am doing it wrong but I copied it into the conditional formating option and it does not work.

  4. #4
    Bob Phillips
    Guest

    Re: Macro for date highlighting....

    I can post a sample workbook to a file hosting site if you want.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "mauddib13" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I tried using that formula but it does not work correctly. Not sure if I
    > am doing it wrong but I copied it into the conditional formating option
    > and it does not work.
    >
    >
    > --
    > mauddib13
    > ------------------------------------------------------------------------
    > mauddib13's Profile:

    http://www.excelforum.com/member.php...o&userid=25785
    > View this thread: http://www.excelforum.com/showthread...hreadid=391908
    >




  5. #5
    Registered User
    Join Date
    08-01-2005
    Posts
    14
    Sure if you could I would appreciate it...

  6. #6
    Bob Phillips
    Guest

    Re: Macro for date highlighting....

    Okay, you can find it at http://cjoint.com/?iclk4zAlJP

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "mauddib13" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Sure if you could I would appreciate it...
    >
    >
    > --
    > mauddib13
    > ------------------------------------------------------------------------
    > mauddib13's Profile:

    http://www.excelforum.com/member.php...o&userid=25785
    > View this thread: http://www.excelforum.com/showthread...hreadid=391908
    >




+ 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