- Press and hold the Control key and then press the Plus key (Cntl + +)
I tested this under Windows 7.
I tested this under Windows 7.
‘shade cell with “yes”
If Target.Row > 1 And Target.Column = 2 Then
If Target.Value = “yes” Then
Cells(Target.Row, Target.Column).Interior.ColorIndex = 50
Else
Cells(Target.Row, Target.Column).Interior.ColorIndex = 2
End If
End If
The only downside to this method is that it runs only after editing a cell. Therefore, if you already have cells with information, you have to re-edit each cell to get the macro to run. This can be done somewhat easily by hitting F2, then the Enter key. For large amounts of data, you need to write a wrapper macro that you can run once on the sheet.
Sub PasteSpecialAsText()
Selection.PasteSpecial DataType:=wdPasteText
End Sub
[Source LifeHacker]
Now, open the book and select A2 from the variant filter. The topic is shown in the TOC. If you select A0 or A1 from the variant filter, the topic is still in the TOC, but it has a strike-through and will not appear in the output.