Hi,
I'm new to VBA, but I saw some tools I'd like to use.
So I have this simple module
(links to the BeforeDoubleClick event)
The purpose is to highlight the whole row and column of the cell I double click. And it works! But only if I copy and paste it into each workbook I open... I open a lot of excel files sent over to me or found within databases, and this tool as you might imagine is fairly useless to me unless I can have it work anywhere.
Any way to achieve this? I did save it in my personal macro book, but it seems I still have to copy it over to the sheet for it to work.
Kind Regards,
Wojciech
I'm new to VBA, but I saw some tools I'd like to use.
So I have this simple module
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim strRange As String
strRange = Target.Cells.Address & "," & _
Target.Cells.EntireRow.Address & "," & _
Target.Cells.EntireRow.Address
Range(strRange).Select
End Sub
The purpose is to highlight the whole row and column of the cell I double click. And it works! But only if I copy and paste it into each workbook I open... I open a lot of excel files sent over to me or found within databases, and this tool as you might imagine is fairly useless to me unless I can have it work anywhere.
Any way to achieve this? I did save it in my personal macro book, but it seems I still have to copy it over to the sheet for it to work.
Kind Regards,
Wojciech
Last edited by a moderator: