Strike through when entering date
Solved/Closed
Bill
-
Dec 30, 2015 at 10:03 PM
vcoolio Posts 1364 Registration date Thursday July 24, 2014 Status Moderator Last seen February 10, 2023 - Jan 2, 2016 at 12:47 AM
vcoolio Posts 1364 Registration date Thursday July 24, 2014 Status Moderator Last seen February 10, 2023 - Jan 2, 2016 at 12:47 AM
Related:
- Strike through when entering date
- Counter strike 1.6 cheats - Guide
- You have tried entering too many codes. try again later. ✓ - Facebook Forum
- Entering power save mode - Guide
- Cache_tryalloc error counter strike - Counter Strike (CS) Forum
- Air strike unlock code ✓ - Nokia Forum
2 replies
vcoolio
Posts
1364
Registration date
Thursday July 24, 2014
Status
Moderator
Last seen
February 10, 2023
252
Jan 2, 2016 at 12:47 AM
Jan 2, 2016 at 12:47 AM
Hello Bill,
A Guru I most certainly am not but I am glad that I could help.
Good luck with it all and Happy New Year!
Cheerio,
vcoolio.
A Guru I most certainly am not but I am glad that I could help.
Good luck with it all and Happy New Year!
Cheerio,
vcoolio.
vcoolio
Posts
1364
Registration date
Thursday July 24, 2014
Status
Moderator
Last seen
February 10, 2023
252
Dec 31, 2015 at 04:12 AM
Dec 31, 2015 at 04:12 AM
Hello Bill,
Perhaps the following code should do the task for you:-
The code is a Worksheet_Change event which means it needs to be placed in the work sheet module. To do this, right click on the sheet tab, select "view code" and in the big white field that appears, paste the above code.
Go back to your work sheet. Each time that you enter a date in a cell in Column F, a strikethrough will appear across the row of data.
Please test the code in a copy of your work book first.
Following is a link to my test work book which shows you how it all works:-
https://www.dropbox.com/s/9o8t5bc5o1n2awy/Bill%28Strikethrough%2C%20worksheet_change%20event%29.xlsm?dl=0
I hope that this helps.
Cheerio,
vcoolio.
Perhaps the following code should do the task for you:-
Private Sub Worksheet_Change(ByVal Target As Range) Application.ScreenUpdating = False Application.EnableEvents = False Dim lRow As Long lRow = Range("A" & Rows.Count).End(xlUp).Row For Each cell In Range("F2:F" & lRow) If cell.Value <> "" Then cell.EntireRow.Font.Strikethrough = True Else cell.EntireRow.Font.Strikethrough = False End If Next Application.EnableEvents = True Application.ScreenUpdating = True End Sub
The code is a Worksheet_Change event which means it needs to be placed in the work sheet module. To do this, right click on the sheet tab, select "view code" and in the big white field that appears, paste the above code.
Go back to your work sheet. Each time that you enter a date in a cell in Column F, a strikethrough will appear across the row of data.
Please test the code in a copy of your work book first.
Following is a link to my test work book which shows you how it all works:-
https://www.dropbox.com/s/9o8t5bc5o1n2awy/Bill%28Strikethrough%2C%20worksheet_change%20event%29.xlsm?dl=0
I hope that this helps.
Cheerio,
vcoolio.