koi
Member
hi All,
i got this macro from chandoo posting about how to click on cell then will trigger pivot table to filter.
question is.. can i make the activecell to range example b5:b10? so when i click another cell it wont trigger the macro.
nowdays i have to protect sheets and allow only range b5:b10 so it wont show error macro message
thanks
=========================================================================
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range("C1").Value = ActiveCell.Value
[Name Range] = [Name Range]
End Sub
i got this macro from chandoo posting about how to click on cell then will trigger pivot table to filter.
question is.. can i make the activecell to range example b5:b10? so when i click another cell it wont trigger the macro.
nowdays i have to protect sheets and allow only range b5:b10 so it wont show error macro message
thanks
=========================================================================
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range("C1").Value = ActiveCell.Value
[Name Range] = [Name Range]
End Sub