Hello Everyone,
Thanks for taking a look at this post, I'm stuck in a bit of a loop.
I have the following code within my worksheet, set to beforedoubleclick:
This works fine, but just once. Once I have used this function I have to close excel and relaunch the sheet before it will work again.
Ideally I need to have 49 of these doubleclick functions, each running my macro to hide all relevant rows and then unhiding those specified when the required cell is double clicked.
I had, perhaps naively, assumed that simply pasting the same code in one after the other with the required tweaks would work, but this does not seem to be the case.
Can someone help me with:
A: why excel will only allow one double click operation before having to close the sheet
B: How to add the code for 49 specified cells with custom unhide.
*Using Excel 2010, sheet is saved as .xlsm*
Thanks for taking a look at this post, I'm stuck in a bit of a loop.
I have the following code within my worksheet, set to beforedoubleclick:
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Address = "$A$8" Then
Call Hide_All
Range("9:14").Select
Range("A9").Activate
Selection.EntireRow.Hidden = False
End If
End Sub
This works fine, but just once. Once I have used this function I have to close excel and relaunch the sheet before it will work again.
Ideally I need to have 49 of these doubleclick functions, each running my macro to hide all relevant rows and then unhiding those specified when the required cell is double clicked.
I had, perhaps naively, assumed that simply pasting the same code in one after the other with the required tweaks would work, but this does not seem to be the case.
Can someone help me with:
A: why excel will only allow one double click operation before having to close the sheet
B: How to add the code for 49 specified cells with custom unhide.
*Using Excel 2010, sheet is saved as .xlsm*
Last edited: