Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I have the following code: ActiveSheet.PivotTables("PvtVarianceRpt2").PivotFi elds ("Line").CurrentPage = cboLine.Name Where cboLine is a combo drop down list. It keeps asking for "Object required" How might I go around fixing this? Thanks in advance for the replies, Grant. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For a combobox from the Control toolbox:
Dim str As String str = ActiveSheet.OLEObjects("cboLine").Object.Value ActiveSheet.PivotTables("PvtVarianceRpt2") _ .PivotFields("Line").CurrentPage = str Grant wrote: I have the following code: ActiveSheet.PivotTables("PvtVarianceRpt2").PivotFi elds ("Line").CurrentPage = cboLine.Name Where cboLine is a combo drop down list. It keeps asking for "Object required" -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing a field setting in a pivot table | Excel Discussion (Misc queries) | |||
Setting default pivot table field setting to "sum" | Excel Discussion (Misc queries) | |||
Pivot Table Page Field | Excel Programming | |||
Setting Pivot Table Page Field Names using VBA | Excel Programming | |||
Setting Pivot Table Page Field Names using VBA | Excel Programming |