I have a hyperlink with a code linked to it in cell A1.
Cells B1->E1 have data in them
I want once the hyperlink is clicked, to 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 whichever row is clicked.
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 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