Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to interrogate the value of a grand totals field to determine
it's formatting What is the property or object that I must use to get the value and not the name of the field? The following returns the name of the field (The same as the name in parenthesis) MsgBox PvTbl.PivotFields("Sum of Num of Occ").Value Thanks for your help! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
MsgBox PvTbl.GetPivotData("Num of Occ")
Gives you the GrandTotal of the specified field. Assumes "Num of Occ" is the actual field name in the underlying datasource, rather than the "column header" in the table itself. HTH, -- George Nicholson Remove 'Junk' from return address. "Lee Hunter" wrote in message ... I would like to interrogate the value of a grand totals field to determine it's formatting What is the property or object that I must use to get the value and not the name of the field? The following returns the name of the field (The same as the name in parenthesis) MsgBox PvTbl.PivotFields("Sum of Num of Occ").Value Thanks for your help! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks George.
Exactly what I was looking for. Lee "George Nicholson" wrote: MsgBox PvTbl.GetPivotData("Num of Occ") Gives you the GrandTotal of the specified field. Assumes "Num of Occ" is the actual field name in the underlying datasource, rather than the "column header" in the table itself. HTH, -- George Nicholson Remove 'Junk' from return address. "Lee Hunter" wrote in message ... I would like to interrogate the value of a grand totals field to determine it's formatting What is the property or object that I must use to get the value and not the name of the field? The following returns the name of the field (The same as the name in parenthesis) MsgBox PvTbl.PivotFields("Sum of Num of Occ").Value Thanks for your help! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Table - copy specified Grand Totals | Excel Worksheet Functions | |||
Grand totals Pivot table | Excel Discussion (Misc queries) | |||
Pivot table row grand totals | Excel Discussion (Misc queries) | |||
Need help with grand totals in pivot table | Excel Discussion (Misc queries) | |||
Pivot Table Grand Totals | Excel Worksheet Functions |