I currently have this VBA assigned to a form control button. Can anybody help me write the code to make this an automated active x control.
Sub MyPivot()
'
' MyPivot Macro
'
'
ActiveSheet.PivotTables("PivotTable1").PivotFields("LOAN_NUMBER").CurrentPage = Range("D1").Text
ActiveSheet.PivotTables("PivotTable2").PivotFields("SIFFUL").CurrentPage = Range("D21").Text
End Sub
Sub MyPivot()
'
' MyPivot Macro
'
'
ActiveSheet.PivotTables("PivotTable1").PivotFields("LOAN_NUMBER").CurrentPage = Range("D1").Text
ActiveSheet.PivotTables("PivotTable2").PivotFields("SIFFUL").CurrentPage = Range("D21").Text
End Sub