Hi Friends,
I got a 2 commands in one VBA which I want to run in same button but I wish that on one click only one command should run and on second click on same button second command should run. For your better understanding I have pasted the code also, this code carries two different functions one is to strikeoff the text in cell and another will undo the strike off.
Now I want that when I clicked the Commandbutton it strikeoff the text of cell but when I again click on the same button it undo the same strikeoff.
Can it be possible ?
If YES than please can you amend the codes and make it as I mentioned above.
Macro Are As Follow:
Private Sub CommandButton5_Click()
ActiveCell.Select
With Selection.Font
.Strikethrough = True
End With
ActiveCell.Select
With Selection.Font
.Strikethrough = False
End With
End Sub
Thanks For Reading The Post.
Regards,
Bookmarks