zombiemaster
Board Regular
- Joined
- Oct 27, 2009
- Messages
- 245
I have a workbook with data in columns A through Y. I want to filter by the word "UNKNOWN" in column X and highlight those rows yellow.
I thought I could filter by that phrase and then find the top of the range by using startRow$, then find the bottom of the range by using endRow$ then selecting that range and doing the highlight...but I obviously don't know what I'm doing because it's not working:
Help is appreciated - I know it's probably simple but right now, not to me...
~ZM~
I thought I could filter by that phrase and then find the top of the range by using startRow$, then find the bottom of the range by using endRow$ then selecting that range and doing the highlight...but I obviously don't know what I'm doing because it's not working:
Code:
Sub FilterHighlight()
Range("A1").Select
Selection.End(xlDown).Select
startRow$ = ActiveCell.Row
Range("A100000").Select
endRow$ = ActiveCell.Row
Range("A" + startRow$:"Y" + endRow$.Select
End Sub
Help is appreciated - I know it's probably simple but right now, not to me...
~ZM~