Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
FA FA is offline
external usenet poster
 
Posts: 18
Default macro for displaying conditional formatting

I have an excel spreadsheet that contains a column with conditional
formatting to highlight overdue dates. I would like to create a macro to
display only the highlighted overdue dates but can't seem to figure out a
formula that will work.
The conditional format is
=AND(ISBLANK(N12),L12<TODAY(), NOT(ISBLANK(L12)))
I thought this formula might work, but it didn't
Selection.AutoFilter Field:=12, Criteria1:="=AND(ISBLANK(N12),L12<TODAY(),
NOT(ISBLANK(L12)))"
Any help would be appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default macro for displaying conditional formatting

Perhaps just autofilter for TRUE on a helper col to the right containing
exactly the same CF formula (in a corresponding cell, copied down) would
suffice?
=AND(ISBLANK(N12),L12<TODAY(), NOT(ISBLANK(L12)))

--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"FA" wrote:
I have an excel spreadsheet that contains a column with conditional
formatting to highlight overdue dates. I would like to create a macro to
display only the highlighted overdue dates but can't seem to figure out a
formula that will work.
The conditional format is
=AND(ISBLANK(N12),L12<TODAY(), NOT(ISBLANK(L12)))
I thought this formula might work, but it didn't
Selection.AutoFilter Field:=12, Criteria1:="=AND(ISBLANK(N12),L12<TODAY(),
NOT(ISBLANK(L12)))"
Any help would be appreciated!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting Macro Daren Excel Discussion (Misc queries) 2 June 27th 07 10:58 PM
Macro Conditional Formatting Sandy Excel Worksheet Functions 2 May 10th 07 02:25 PM
Conditional Formatting in a Macro Ed Excel Discussion (Misc queries) 2 August 28th 06 11:23 PM
Conditional Formatting in Macro shantanu oak Excel Discussion (Misc queries) 2 July 14th 06 01:11 PM
Macro/conditional formatting BigMac Excel Discussion (Misc queries) 1 December 6th 04 11:24 PM


All times are GMT +1. The time now is 08:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"