ceroberts75
New Member
- Joined
- Jan 10, 2025
- Messages
- 7
- Office Version
- 365
- 2024
- 2021
- 2019
Per my reply on this thread, would like to expand on this further.
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 there 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
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 there 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