Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I'm using Excel 2010 and I have a question about filtered data and
performing an operation on just the filtered data. In the code below I have two filters running. Then I have the code moving down the column turning text red when certain criteria are met. The problem is that it is doing it on **all** the data in the YOS column and I only want it to do it on the filtered data. Is there a way to adjust my code so that it only operates on filtered data? Thanks. 'Set Region filter to NA and sets Work Location Data filter to all US locations Selection.AutoFilter Field:=11, Criteria1:="NA" Selection.AutoFilter Field:=10 'Formats text in YOS column to red if = 1 finalrow = Cells(200, 1).End(xlUp).Row For i = 2 To finalrow If Cells(i, 13).Value = 1 Then Cells(i, 13).Font.Color = -16776961 End If Next i |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Return filtered values into report worksheet based on filtered valueon the data worksheet | Excel Worksheet Functions | |||
Filtered Data | Excel Discussion (Misc queries) | |||
MS2007 - deleting filtered data, deletes non-visible data too | Excel Discussion (Misc queries) | |||
Filter data and fill only filtered data | Excel Discussion (Misc queries) | |||
Help to sort out filtered data from the data contained in another sheet of the same workbook | Excel Worksheet Functions |