+ Reply to Thread
Results 1 to 5 of 5

Excel macro for if condition (format)

  1. #1
    Registered User
    Join Date
    03-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    11

    Excel macro for if condition (format)

    Hello everyone,
    I need a macro based on condition, if cell A1 is between 8.30 pm to 8.45 Pm then Cell A1 should higlighted

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Excel macro for if condition (format)

    You dont need a macro, you need Conditional Formatting

    Select A1
    Condtional Formatting
    New Rule
    "Use a formula to determine..."
    =(AND(A1>=TIMEVALUE("20:30:00"),A1<=TIMEVALUE("20:45:00")))
    highlight as required

    Use Format painter to paste to other cells if needed
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    03-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Excel macro for if condition (format)

    Thanks a lot for your reply.... But conditional formula doesn't work since cel "A1" is contain a time formula "=Now()". Can pleaese help me out ...

  4. #4
    Registered User
    Join Date
    03-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Excel macro for if condition (format)

    Acctually we need to perform some particular task on required time , it will be great if any one can provide a macro which will give a pop-up message , Suppose time is between 8:30 PM to 8:50 PM.

  5. #5
    Registered User
    Join Date
    03-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Excel macro for if condition (format)

    Hi all,
    Can any one help me out with this problem: I need a macro which give a pop-up message when time is between 8:30 PM to 8:45 PM.

+ 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