Viktor86HUN
New Member
- Joined
- Dec 4, 2014
- Messages
- 17
Hello.
I've just recently got a solved issue on this forum.
But it has generated me another issue.
Just got a code applied to the workbook which highlights rows.
What i would like to have the option to turn the feature off with a checkbox on the main sheet. (the code applies to the whole workbook, it would be okay to change the code, to only apply to the main sheet aswell)
Possible upcoming bug:
When i'll have a row highlighted, and turn off the feature, than the highlighting would not disappear.
Any help would be appretiated
I've just recently got a solved issue on this forum.
But it has generated me another issue.
Just got a code applied to the workbook which highlights rows.
What i would like to have the option to turn the feature off with a checkbox on the main sheet. (the code applies to the whole workbook, it would be okay to change the code, to only apply to the main sheet aswell)
Code:
[COLOR=#0000cd]Private Sub workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
Application.ScreenUpdating = False
Application.FindFormat.Clear
Application.ReplaceFormat.Clear
Application.FindFormat.Interior.Color = RGB(255, 230, 153)
Application.ReplaceFormat.Interior.Color = xlNone
Cells.Replace "", "", SearchFormat:=True, ReplaceFormat:=True
Application.FindFormat.Clear
Application.ReplaceFormat.Clear
Application.FindFormat.Interior.Color = xlNone
Application.ReplaceFormat.Interior.Color = RGB(255, 230, 153)
Target.EntireRow.Replace "", "", SearchFormat:=True, ReplaceFormat:=True
Application.FindFormat.Clear
Application.ReplaceFormat.Clear
Application.ScreenUpdating = True
End Sub[/COLOR]
Possible upcoming bug:
When i'll have a row highlighted, and turn off the feature, than the highlighting would not disappear.
Any help would be appretiated