Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
With your help I prepared the following code to control a pivot table using a
data validation field: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Count 1 Then Exit Sub If Intersect(Target, Me.Range("D2")) Is Nothing Then Exit Sub Application.EnableEvents = False Worksheets("Profile").PivotTables("Pivottable1") _ .PageFields("Prescriber Name").CurrentPage = Target.Value Application.EnableEvents = True End Sub I want to have two of this in one page. I do not know much of VBA. How can I do this? Thank you very much! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Any cell containing formula seen as data instead of formula | Excel Worksheet Functions | |||
named range, data validation: list non-selected items, and new added items | Excel Discussion (Misc queries) | |||
HELP: Data > Validation ---List ----Formula | Excel Worksheet Functions | |||
Effect of Conditional Formatting, Data Validation | Excel Discussion (Misc queries) | |||
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? | Excel Discussion (Misc queries) |