Excel 2007- I have a large spreadsheet that I add 2 rows to daily. I also have about a dozen conditional formatting formulas that flag certain conditions for quick identification. The worksheet that gets the daily data is named "DataSheet"
I've written a quick VBA Macro that sets a named range "LastRow" on the "Constants" worksheet to be the last row of the "DataSheet" worksheet. When I run that, it sets LastRow to 680 (today). How can I adjust by conditional formatting rules to format down to the value in LastRow? In this case, water meter readings are recorded on a daily basis. A maximum of 2 cubic meters usage is OK, so a named range called WaterAlarm on the Constants page is set to 2.0 e.g. Here is the formula: =AU453-AT453>WaterAlarm and the range it applies to is: =$AU$453:$AU$674 Ideally this would adjust to the last row for all the conditional formatting when I run the macro that sets the "LastRow" I guess I could just add all the conditional formatting to the Macro and be done with it but it would be nice to know how to do it in the conditional formatting context. Thanks -- FORUM RULES (934+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com