A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Sorry - I read your post as you clicking in A - change the Address to the cells that you click on - for example, in column B
Sub MacroToShowDetails()
Dim r As Range
For Each r In Range("B5:B25")
r.ShowDetail = True
ActiveSheet.Name = r.Offset(0,1-r.Column).Value
Next r
End Sub