I would suggest a double click on U5 instead of a simple click because if the macro runs on a click, this would prevent you from entering the cell without running the macro. See if this works for you using a double click. Of course, U5 must contain "Next" when you double click it.
VBA Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.CountLarge > 1 Then Exit Sub
If Target.Address(0, 0) <> "U5" Then Exit Sub
Application.ScreenUpdating = False
If Target = "Next" Then
Call top3wa
End If
Application.ScreenUpdating = True
End Sub
This was genious! I have been playing with this but unsuccessfully able to use this code to enable multiple cells with texts on the same page to run a macro.
I have a doc, that has columns pulling content from another sheet. Each column has a title, and I want to be able to click on each title to sort by the macro I have created for each option. Below shows 2, but htere are 6 columns that I would like to have the text be connected to a macro.
Until I found this page, I had to use individual images/icons.
Thank you much in advance!
eg-
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.CountLarge > 1 Then Exit Sub
If Target.Address(0, 0) <> "C10,E10" Then Exit Sub
Application.ScreenUpdating = False
If Target = "Store List" Then
Call Sort_Store_List_By_Store_Name
If Target = "Last Visit 1" Then
Call Sort_Store_List_By_LastVisit_1
End If
Application.ScreenUpdating = True
End Sub