Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a table of data that I have a macro creating a pivot table out
of. I select a cell out of the row titles but it shows the cell value is "". I even tried cells.find to look for the word but that doesn't find the cell I am looking for. Manually I can do it and find the cell or click on it and see the value but when I run the macro it doesn't see the values. I have even tried copying the whole table and pasting values so it doesn't see it as a pivot table anymore. Any help is appreciated. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I guess you are looking for field names. DId you try the PivotField object?
Kanan " wrote: I have a table of data that I have a macro creating a pivot table out of. I select a cell out of the row titles but it shows the cell value is "". I even tried cells.find to look for the word but that doesn't find the cell I am looking for. Manually I can do it and find the cell or click on it and see the value but when I run the macro it doesn't see the values. I have even tried copying the whole table and pasting values so it doesn't see it as a pivot table anymore. Any help is appreciated. Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
No I haven't...do you have an example of the PivotField object?
|
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is one:
Sub CheckDataField(collabel As String) Set pvtTable = ActiveChart.PivotLayout.PivotTable For Each pvtField In pvtTable.DataFields If Left(pvtField.Name, 5) = "Count" Then With ActiveChart.PivotLayout.PivotTable.PivotFields("Co unt of Value") .Caption = collabel .Function = xlSum End With End If If Left(pvtField.Name, 3) = "Sum" Then With ActiveChart.PivotLayout.PivotTable.PivotFields("Su m of Value") .Caption = collabel End With End If Next pvtField End Sub --------------------------------------------------------------- if you need to check individual values for any of the Pivot field, then use the pivotitem object. Good Luck Kanan " wrote: No I haven't...do you have an example of the PivotField object? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Merging cells in Pivot tables | Excel Discussion (Misc queries) | |||
Find Pivot Tables in workbook based on their name | Excel Discussion (Misc queries) | |||
Pivot tables and blank cells | Excel Worksheet Functions | |||
Building pivot tables in Excel 2007 based on existing pivot tables? | Excel Discussion (Misc queries) | |||
Grouped Cells in Pivot Tables | Excel Discussion (Misc queries) |