+ Reply to Thread
Results 1 to 15 of 15

Conditional Formatting not working anymore - Macro enable workbook

  1. #1
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Conditional Formatting not working anymore - Macro enable workbook

    Hi,

    I have created new Macro-enabled workbook, deleted all previous workbook and break link. Everything works OK, except Conditional Formatting formula. I inserted exactly same formula in CF in exactly same way, but It doesn't work anymore. What did I do wrong ?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Conditional Formatting not working anymore - Macro enable workbook

    Being a little anecdotal, this is a bit like walking into a garage and saying your car is parked at home, 15 miles away, and it "isn't working". There's only so many questions you can ask to try to determine what might be wrong, with no way of checking and eliminating the possibilities.

    And the mechanic isn't going to want to waste much time on it because a) he's not going to get paid for his time and b) he's got better things to do with his time.

    18+ mechanics have looked at your thread so far ...

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: Conditional Formatting not working anymore - Macro enable workbook

    Quote Originally Posted by TMShucks View Post
    Being a little anecdotal, this is a bit like walking into a garage and saying your car is parked at home, 15 miles away, and it "isn't working". There's only so many questions you can ask to try to determine what might be wrong, with no way of checking and eliminating the possibilities.

    And the mechanic isn't going to want to waste much time on it because a) he's not going to get paid for his time and b) he's got better things to do with his time.

    18+ mechanics have looked at your thread so far ...

    Regards, TMS
    TMShucks, I don't see where you found your basis for being anecdotal, I'm sure there isn't any human being on this planet which posseses all knowledge. You may find how difficult your
    life can be If all around you are supposed to be stupid. I guess in your case you would rather leave your car where It was and step on the bus, until you figured what went wrong. I admire your courage, but I'm a simple man trying to solve something yet unfamilliar...

    I have checked many threads so far, not only this forum, and only thing I have concluded is that this CF formula works in a .xlsx file and not in .xlsm file, which is mine. That's why I posted thread here, I'm sure that here are many Excel experts that know the answer. So thank god for all the mechanics which checked so far

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Conditional Formatting not working anymore - Macro enable workbook

    I'm not saying that I possess all, or even a small percentage of all knowledge, or that you are stupid, or that all around me are stupid ... however you want to extend that theme.

    And, as it happens, I am of an age where I qualify for a free pass on public transport, so I am actively trying to use that instead of the car (although it isn't broken, but it is parked in the drive).

    What I was saying is that there comes a point where you would need to get your car on the back of a tow truck and get it down to the garage where a mechanic could look at it, test it, diagnose the fault and, hopefully, fix it for you ... albeit, at a price.

    In this instance, I think you need to let people have a look at a sample workbook so that it can be tested and tried. In theory, there should be no reason why CF should work differently in an .xlsx or .xlsm file. But then, when you put the CF condition(s) in, you might have referred to the wrong range(s). Or you may have a User Defined Function (UDF) that is not available in the .xlsx file, and which you depend upon.

    Like I said, you can only guess at so many possible options.

    Anyway, 38 mechanics have looked at the thread so far, though that could includes some repeat visits.

    You said ...
    ... and only thing I have concluded is that this CF formula works in a .xlsx file and not in .xlsm file
    You haven't even told us what that CF formula is ... maybe that would give someone a clue?

    You should perhaps bear in mind that the people who try to answer questions on this forum, and others, do so voluntarily. That's something you need to consider when you respond to well meant, though maybe not well put, guidance with what I would interpret as "attitude".


    Regards, TMS

  5. #5
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Conditional Formatting not working anymore - Macro enable workbook

    Mechanic here . Upload your file.

  6. #6
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: Conditional Formatting not working anymore - Macro enable workbook

    Quote Originally Posted by TMShucks View Post
    I'm not saying that I possess all, or even a small percentage of all knowledge, or that you are stupid, or that all around me are stupid ... however you want to extend that theme.

    And, as it happens, I am of an age where I qualify for a free pass on public transport, so I am actively trying to use that instead of the car (although it isn't broken, but it is parked in the drive).

    What I was saying is that there comes a point where you would need to get your car on the back of a tow truck and get it down to the garage where a mechanic could look at it, test it, diagnose the fault and, hopefully, fix it for you ... albeit, at a price.

    In this instance, I think you need to let people have a look at a sample workbook so that it can be tested and tried. In theory, there should be no reason why CF should work differently in an .xlsx or .xlsm file. But then, when you put the CF condition(s) in, you might have referred to the wrong range(s). Or you may have a User Defined Function (UDF) that is not available in the .xlsx file, and which you depend upon.

    Like I said, you can only guess at so many possible options.

    Anyway, 38 mechanics have looked at the thread so far, though that could includes some repeat visits.

    You said ...

    You haven't even told us what that CF formula is ... maybe that would give someone a clue?

    You should perhaps bear in mind that the people who try to answer questions on this forum, and others, do so voluntarily. That's something you need to consider when you respond to well meant, though maybe not well put, guidance with what I would interpret as "attitude".


    Regards, TMS
    I didn't mean to be rude or anything, It's just this workbook project that I have to finish ASAP ("annoying boss"), and I'm Excel beginner. Seems that everything I do crashes or doesn't work, so I'm a little bit agitated once a while. My intentions weren't bad, I know how hard you guys here struggle to help others for free, and you all have my respect !!!...Now, enough about this...UDF, don't have a clue what this is, maybe that is the problem. I attached sample worksheet, my CF formula highlights whole week if sum of working hours exceeds 56. Cells which are highlighted are also formula-based, maybe that is problem, but It worked fine in previous workbook.

    CF formula is allready set, but just in case, here it is:


    Please Login or Register  to view this content.
    In sample workbook I only defined range E2:AI2, but it actually needs to be working in every parallel rows - E10, E14,E18 and so on...

    Also - I'm wondering If this CF formula is going to work in Excel 2003, we still have some machines at work with old software ?
    Last edited by Lukael; 02-19-2014 at 06:10 PM.

  7. #7
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: Conditional Formatting not working anymore - Macro enable workbook

    Quote Originally Posted by thameem127 View Post
    Mechanic here . Upload your file.
    Upload done, see previous post, thanks for help !!!

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional Formatting not working anymore - Macro enable workbook

    the sumproduct is evaluating to #value as you are trying to to multiply cells by ""
    try changing
    =IFERROR(MOD(RIGHT(G4,5)-LEFT(G4,5),1)*24,"")
    to
    =IFERROR(MOD(RIGHT(G4,5)-LEFT(G4,5),1)*24,0) also i doesn't need to be array entered
    also once i did that i tested in excel 97 and the row highlights red up to S5
    you can custom format the cell not to show 0 use a custom format
    Select the cells that contain the zero (0) values that you want to hide.
    On the Format menu, click Cells, and then click the Number tab.
    In the Category list, click Custom.
    In the Type box, type 0;-0;;@
    but!!!!!!!
    IFERROR WILL NOT WORK PRE 2007
    so i changed the formula to
    =IF(ISERROR(MOD(RIGHT(F4,5)-LEFT(F4,5),1)*24),0,MOD(RIGHT(F4,5)-LEFT(F4,5),1)*24)
    Last edited by martindwilson; 02-19-2014 at 06:25 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  9. #9
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: Conditional Formatting not working anymore - Macro enable workbook

    Ok, I will try this as soon as I arrive home, thanks for response, will let you know about result !

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional Formatting not working anymore - Macro enable workbook

    here is a workbook done in excel 97
    Attached Files Attached Files

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Conditional Formatting not working anymore - Macro enable workbook

    You will also need to change the conditional formatting formula from:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    to

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    To be able to copy the cell formula and the CF down.


    Regards, TMS

  12. #12
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: Conditional Formatting not working anymore - Macro enable workbook

    Quote Originally Posted by martindwilson View Post
    here is a workbook done in excel 97
    Much appreciated, I saw what you did, I will correct everything you said. I'm just curious - why It worked in beginning, was It because of linking to another workbook ?

  13. #13
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: Conditional Formatting not working anymore - Macro enable workbook

    Quote Originally Posted by TMShucks View Post
    You will also need to change the conditional formatting formula from:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    to

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    To be able to copy the cell formula and the CF down.


    Regards, TMS
    I don't see any change in these two formulas, did you mean how to drag formula and CF into other cells ? (I have allready done that...)

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Conditional Formatting not working anymore - Macro enable workbook

    I don't see any change in these two formulas
    Look again.

    You'd have to copy the cells in row 5 (E5:AI5) and paste the formulas/formatting into row 10, 14, etc.

    Regards, TMS

  15. #15
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: Conditional Formatting not working anymore - Macro enable workbook

    Quote Originally Posted by TMShucks View Post
    Look again.

    You'd have to copy the cells in row 5 (E5:AI5) and paste the formulas/formatting into row 10, 14, etc.

    Regards, TMS
    Ohhh, a Dollar sign

    Thanks !

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Workbook with VBA now has strange numeric formatting; also, VBA not working anymore
    By robpopper in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-26-2013, 01:32 PM
  2. Replies: 0
    Last Post: 09-18-2012, 05:08 AM
  3. Macro - Reset button not working anymore
    By heather1209 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2011, 06:05 AM
  4. Conditional Formatting Not Working In Macro
    By davehunter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2007, 01:29 PM
  5. Enable conditional formatting
    By ukphoenix in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-18-2007, 09:18 PM

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