I have written code that asks the user to select the Week that they want displayed from the pagefields. I want to display the pagesfields to the user prior to asking them to select one.
Here is my code:
WeekNo = InputBox("Enter Week No ")
ActiveSheet.PivotTables(1).PageFields(1).CurrentPage = WeekNo
At this point the user has no idea what weeks are available. I either need to put a delay in so the user can select the Pagefield "Week" and see the available PivotItemsfrom the actual ActivePivotSheet or I need it to display them prior to the code written above.
Help
Here is my code:
WeekNo = InputBox("Enter Week No ")
ActiveSheet.PivotTables(1).PageFields(1).CurrentPage = WeekNo
At this point the user has no idea what weeks are available. I either need to put a delay in so the user can select the Pagefield "Week" and see the available PivotItemsfrom the actual ActivePivotSheet or I need it to display them prior to the code written above.
Help