Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA: Group Pivot Table and Combo Box

I have a pivot table that I would like to create a form or combo box that
will give the end user the option of picking different groups. Such as Days,
WTD, MTD, Quarters, YTD. If anyone could get me started I would appreciated.
The code I'm using below is what I have but it continues to give me an
error. Thanks for the help


Private Sub ComboBox1_Change()
Sheets("DAILY").PivotTables("Weekly").PivotFields( "DATE").CurrentPage = _
Sheets("DAILY").Range("AI1").Value

PivotTables("Weekly").PivotFields("DATE").Group Start:=True, End:=True,
Periods:=Array(False, False, False, _
False, True, False, False)

PivotTables("Weekly").PivotFields("DATE").Group Start:=True, End:=True,
Periods:=Array(False, False, False, _
False, False, True, False)

PivotTables("Weekly").PivotFields("DATE").Group Start:=True, End:=True,
Periods:=Array(False, False, False, _
False, True, True, False)

PivotTables("Weekly").PivotFields("DATE").Group Start:=True, End:=True,
Periods:=Array(False, False, False, _
False, False, True, True)

End Sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table group help Dan Shepherd Excel Discussion (Misc queries) 2 May 23rd 08 06:33 PM
Group in Pivot Table Steve Excel Discussion (Misc queries) 4 June 14th 07 09:56 PM
how to group a pivot table saraht Excel Discussion (Misc queries) 1 September 29th 06 07:04 PM
Pivot Table, can't group Pascale Excel Discussion (Misc queries) 2 August 9th 05 02:00 PM
Pivot Table - no group on web Tracy D. Excel Discussion (Misc queries) 0 December 16th 04 05:57 PM


All times are GMT +1. The time now is 08:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"