I have a hyperlink with a code linked to it in cell A1
cells B1->E1 have data filled in them
I want a code that once the hyperlink is clicked , it will cut cells B1->E1
I want to paste these in a different tab but I am familiar with that part of the code
this is a big sheet so I don't want to cut cells B1->E1 specifically , I want to cut the cells next to the hyperlink which ever row is clicked.
sorry if my explanation is confusing lol , hopefully this will show what I am trying to do ;
A B C D E
hyperlink value value value value
hyperlink value value value value
hyperlink value value value value
hyperlink value value value value
Code I have tried
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Dim r As Range
Set r = Range(Target.SubAddress)
Range("B7:E7").Select
Selection.Cut
Sheets("Wash Bay").Select
Worksheets("Wash Bay").Range("B6").Activate
ActiveSheet.Paste
End Sub