Hi,
In my worksheet, I have Column U that sometimes has "Create Calendar Invite - DATEHERE" in the cell.
I want it so if any cell in Column U has "Create Calendar Invite*" in it and then I click that cell, it runs a Macro I have set up named 'CalendarInvite'
Is there a way to make a hyperlink to run a macro or does it have to be VBA?
I've tried the below with no success:
Full code:
Thanks in advance!
In my worksheet, I have Column U that sometimes has "Create Calendar Invite - DATEHERE" in the cell.
I want it so if any cell in Column U has "Create Calendar Invite*" in it and then I click that cell, it runs a Macro I have set up named 'CalendarInvite'
Is there a way to make a hyperlink to run a macro or does it have to be VBA?
I've tried the below with no success:
VBA Code:
If Not Intersect(Selection, Range("U:U")) Is Nothing And Selection.Count = 1 Then
If InStr(1, Cells(ActiveCell.Row, "U").Value, "Create Calendar Invite*") > 0 Then
Call CalendarInvite
End If
End If
Full code:
VBA Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Application.CutCopyMode = False Then
Application.Calculate ' Refresh for Grey Line
End If
If Not Intersect(Selection, Range("U:U")) Is Nothing And Selection.Count = 1 Then
If InStr(1, Cells(ActiveCell.Row, "U").Value, "Create Calendar Invite*") > 0 Then
Call CalendarInvite
End If
End If
'Check Timeout timer
checktime = True
Lastchange = Now()
End Sub
Thanks in advance!