+ Reply to Thread
Results 1 to 11 of 11

Tired Conditional Format Needs VBA Upgrade expertise desperately to survive.

  1. #1
    Registered User
    Join Date
    12-02-2012
    Location
    Miami
    MS-Off Ver
    2019, 365, MAC
    Posts
    45

    Tired Conditional Format Needs VBA Upgrade expertise desperately to survive.

    Oh I wish I was smarter. I was tasked with making my workbook actually work - and be smaller so I could email it out. I think VBA may be my only answer. Another genius here helped me come up with a conditional format for my worksheet. Here is the scenario. You can also look at the attached.

    I have a table with columns from A - Z. In column A3 is Date In. B3 is Date Out. C3 is =networkdays(). Normal data, (text, dates, general and accounting take up the rest of the columns).

    The Condition: When a value is entered anywhere on a line (other than B3) the whole line will turn our favorite bright yellow). When a date is entered into B3, the whole line is unhighlighted, regardless of what else is entered. Keep in mind the formula for network days may be a challenge?

    While I'm asking for the moon, the sheet name should appear in A2.

    This would need to be in up to 5 worksheets, but could be less.

    Is anyone up to the challenge of making my day any better? In advance, thank you so very much. I am very grateful.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Tired Conditional Format Needs VBA Upgrade expertise desperately to survive.

    It would probably help more if you added some sample data, and showed what you expect?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Tired Conditional Format Needs VBA Upgrade expertise desperately to survive.

    This would your CF rule...
    =AND($B4="",COUNTA($E4:$Q4)>0)

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Tired Conditional Format Needs VBA Upgrade expertise desperately to survive.

    This will pull your sheet name for you...
    A2=MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)

  5. #5
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Tired Conditional Format Needs VBA Upgrade expertise desperately to survive.

    I guess
    Please Login or Register  to view this content.
    But I don't see how this is helping to make it faster/smaller/more email-able etc...

    Was your conditional formatting causing it to crash somehow?
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  6. #6
    Registered User
    Join Date
    12-02-2012
    Location
    Miami
    MS-Off Ver
    2019, 365, MAC
    Posts
    45

    Re: Tired Conditional Format Needs VBA Upgrade expertise desperately to survive.

    I have added some data. Thank you.

  7. #7
    Registered User
    Join Date
    12-02-2012
    Location
    Miami
    MS-Off Ver
    2019, 365, MAC
    Posts
    45

    Re: Tired Conditional Format Needs VBA Upgrade expertise desperately to survive.

    I'm not sure what made it crash. It would just spin and spin and the only way out was to hard power down. Opening in safe mode doesn't make my IT group very happy.

  8. #8
    Registered User
    Join Date
    12-02-2012
    Location
    Miami
    MS-Off Ver
    2019, 365, MAC
    Posts
    45

    Re: Tired Conditional Format Needs VBA Upgrade expertise desperately to survive.

    Thank you for this one.

  9. #9
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Tired Conditional Format Needs VBA Upgrade expertise desperately to survive.

    I think there can be an issue with lots of conditional formats and many filters on a worksheet. Maybe that was happening.

    But I'm wondering if there is another issue at play here that we are not actually fixing - although it is very hard to figure that out remotely.
    was your file size getting huge?
    did you have millions of rows (ie the scroll bar is tiny?)
    do the users have any addins?

    Maybe someone else has ideas.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Tired Conditional Format Needs VBA Upgrade expertise desperately to survive.

    Quote Originally Posted by dbsbender View Post
    Thank you for this one.
    Does that mean my suggestions worked for you?

  11. #11
    Registered User
    Join Date
    12-02-2012
    Location
    Miami
    MS-Off Ver
    2019, 365, MAC
    Posts
    45

    Re: Tired Conditional Format Needs VBA Upgrade expertise desperately to survive.

    Thank you all. I will give these a try today and see if it works. If not, I may try to bring in the original file. Thanks for being willing to jump in and help out.

+ 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. Joining From Newcastle, England. Desperately need your expertise today!
    By conrossmac in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-20-2019, 01:07 PM
  2. Macro not woking in Upgrade format of MS Office
    By Liju144 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2014, 12:40 AM
  3. Hello, I'm just trying to survive my job despite Excel!
    By MisterA in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 04-01-2014, 08:48 PM
  4. Macro assignment doesn't survive file reload
    By aprimak in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-02-2012, 11:49 AM
  5. [SOLVED] Conditional formatting reference behavior changed after upgrade
    By justmatt in forum Excel General
    Replies: 4
    Last Post: 06-10-2012, 07:23 PM
  6. Variables that survive an entire session
    By eugene in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2006, 04:10 PM
  7. Are you tired of looking for money?
    By Moneyseeker in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-08-2005, 03:06 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