Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$C$7" Then
If Rows("8").Hidden = True Then
ActiveSheet.Rows("8:13").Hidden = False
Else
ActiveSheet.Rows("8:13").Hidden = True
End If
End If
End Sub
This toggles hidded/unhidden based on the cell C7 getting the focus
It only changes when you click in to c7 the first time
so click somewhere else and then back into C& and it will toggle
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
If Target.Parent.Address = "$C$7" Then ActiveSheet.Range("8:13").Rows.Hidden = False
End Sub
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.