Hiding Strikethrough Data

jckenney

New Member
Joined
Nov 16, 2013
Messages
7
Colleagues,

Is there a method for hiding Strikethrough Data via Macro or Formula?

I appreciate everyone support.

Cheers
Jim
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Is there a method for hiding Strikethrough Data via Macro or Formula?
What exactly do you mean by "hiding Strikethrough Data"... hiding the entire row it is on or just making the cell display as blank?

Will the text in a single cell you want to "hide" all be Strikethrough or could only part of it be Strikethrough and the rest non-Strikethrough?
 
Upvote 0
Id libe to hide all rows that have any text with a strikethrough.
You did not answer my second question... for a row you want to hide, will all the text in the cell be Strikethrough or could, say, one word out of three words be Strikethrough?

Also, what column or columns should be checked for the Strikethrough?

PLEASE ANSWER BOTH OF THE ABOVE QUESTIONS
 
Upvote 0
Rick,

I have many rows that I need to hide. I need to retain the data as old and the Strike through helps me identify that the job is complete.
Does this answer your question?

Here is an example ROW 28
[TABLE="width: 1172"]
<tbody>[TR]
[TD]<strike>08/03/15</strike>[/TD]
[TD]KVRT[/TD]
[TD]<strike>JAMES KENNEY</strike>[/TD]
[TD]<strike>Repair</strike>[/TD]
[TD]<strike>1783518</strike>[/TD]
[TD]<strike>PFO 3D-2</strike>[/TD]
[TD]<strike>0042</strike>[/TD]
[TD] [/TD]
[TD]<strike>102235164</strike>[/TD]
[TD]<strike>32566059</strike>[/TD]
[TD]<strike>32565944</strike>[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Rick,

I have many rows that I need to hide. I need to retain the data as old and the Strike through helps me identify that the job is complete.
Does this answer your question?

Here is an example ROW 28
[TABLE="width: 1172"]
<tbody>[TR]
[TD]<strike>08/03/15</strike>[/TD]
[TD]KVRT[/TD]
[TD]<strike>JAMES KENNEY</strike>[/TD]
[TD]<strike>Repair</strike>[/TD]
[TD]<strike>1783518</strike>[/TD]
[TD]<strike>PFO 3D-2</strike>[/TD]
[TD]<strike>0042</strike>[/TD]
[TD] [/TD]
[TD]<strike>102235164</strike>[/TD]
[TD]<strike>32566059</strike>[/TD]
[TD]<strike>32565944</strike>[/TD]
[/TR]
</tbody>[/TABLE]
See if this macro does what you want...
Code:
Sub HideStrikethroughRows()
  Dim Rw As Range
  Application.ScreenUpdating = False
  Rows.Hidden = False
  For Each Rw In ActiveSheet.UsedRange.Rows
    If Rw.Font.Strikethrough Or IsNull(Rw.Font.Strikethrough) Then Rw.Hidden = True
  Next
  Application.ScreenUpdating = True
End Sub
 
Upvote 0
Rick. This is great. I created a button for this and use it daily. Can you have a macro to unhide the same rows to I can look at them if I want to?
 
Upvote 0
Give this macro a try...
VBA Code:
  Dim Rw As Range
  Application.ScreenUpdating = False
  For Each Rw In ActiveSheet.UsedRange.Rows
    If Rw.Font.Strikethrough Or IsNull(Rw.Font.Strikethrough) Then Rw.Hidden = False
  Next
  Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top