Hi guys,
I am trying to get a set of hyperlinks on a worksheet to run the macro 'Last_Row' I have written (below):
I have been using the following to try and make it work without success:
The hyperlink is based on an IF formula (i.e. only appears if a certain cell has been checked "Yes". The same hyperlink features across multiple cells in one column ( Column V).
Can anyone help? Getting desperate
Cheers,
Fred
I am trying to get a set of hyperlinks on a worksheet to run the macro 'Last_Row' I have written (below):
Code:
[FONT=Calibri][/FONT]
[FONT=Calibri]Sub Last_Row()
Sheets("Sheet 1").Select
ActiveSheet.Protect Password:="Password", DrawingObjects:=True, _
contents:=True, Scenarios:=True, _
userinterfaceonly:=True
ActiveSheet.EnableAutoFilter = True
If ActiveSheet.AutoFilterMode Then
If ActiveSheet.FilterMode = True Then
ActiveSheet.ShowAllData
End If
End If
Dim FinalRow As Long
FinalRow = Range("D" & Rows.Count).End(xlUp).Row
ActiveSheet.Rows(FinalRow).Select
Selection.Offset(1, 0).Select
End Sub[/FONT][FONT=Calibri][/FONT]
I have been using the following to try and make it work without success:
Code:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Run ("Last_Row")
End Sub
The hyperlink is based on an IF formula (i.e. only appears if a certain cell has been checked "Yes". The same hyperlink features across multiple cells in one column ( Column V).
Can anyone help? Getting desperate
Cheers,
Fred