Strikethrough columns A-J with double click

sdl93

New Member
Joined
Aug 24, 2022
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hi everyone,

So I'm a bit of a novice when it comes to excel and I'm looking for a bit of advice/guide on achieving the above. I have a huge list of over 2000 tasks that my work is working through. I want to be able to strikethrough the whole row from columns A-J with either a double click or checkbox once the task is complete.

It seems the double-click method may be the easiest to achieve, I tried to figure it out using checkboxes but realised they would need to be manually linked, which just isn't feasible with over 2000 entries. Any help in this matter would be greatly appreciated. Below is an example of how I would like it to look. Is this possible with one double-click or would it need to be each column?


Capture.JPG
 
Taking from Joe's idea .. this code will allow you to click anywhere on the row, not just in your defined range :

VBA Code:
Option Explicit

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    
        With Sheet1
            
            Range("A" & Target.Row, "J" & Target.Row).Font.Strikethrough = Not Range("A" & Target.Row, "J" & Target.Row).Font.Strikethrough
            
        End With
    
End Sub
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Amazing guys! You've all been incredibly helpful. Now to try and remember all of this and apply it to future tasks.
 
Upvote 0

Forum statistics

Threads
1,214,594
Messages
6,120,436
Members
448,964
Latest member
Danni317

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