Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Excel Programming in VB

Sugith

On the Pivot Table, Double-click the field header to be
edited e.g The grey Qty field at the top of the table.

Choose Sum from the drop-down list.

Regards
Peter
-----Original Message-----
I have a code as follows in a VB Subroutine.

With .PivotFields("Next Quarter")
.Orientation =4
.Position = 7
End With

the problem is, the field "Next Quarter" is coming
as "Count of" field instead of "Sum of". So all the

values
in this field are distorted. How do I force this field
to "Sum of"? Any idea?

A quick reply is appreciable.

Thanks
Sugith

.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Excel Programming in VB

Thanks for the quick reply. But here I need to control the
Excel sheet thru the VB Program. Because of the "Count of"
all the values in that field are appearing as 1. They are
actually holding diffrent values like 22.0, 25.2 etc

Thanks
Sugith
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel Programming in VB

Turn on the macro recorder while you manually do what Peter suggested. That
should give you the attributes you need to work with to control you table.

If all your data is numeric, then excel will default to Sum of, but if there
is non-numeric or I think, even a blank field, it will default to Count of,
so you need to control it explicitly.

--
Regards,
Tom Ogilvy
"Sugith Kumar" wrote in message
...
Thanks for the quick reply. But here I need to control the
Excel sheet thru the VB Program. Because of the "Count of"
all the values in that field are appearing as 1. They are
actually holding diffrent values like 22.0, 25.2 etc

Thanks
Sugith



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
Excel Programming danjordan2000 Excel Discussion (Misc queries) 1 November 17th 08 01:20 PM
Or Excel Programming Help Me please some body... Excel Worksheet Functions 1 August 2nd 07 11:32 PM
excel programming Wendy Elizabeth Charts and Charting in Excel 2 June 19th 07 04:21 AM
Excel/VBA programming Carlos A Excel Discussion (Misc queries) 2 July 24th 05 10:21 PM
Excel Programming Sprad-Dog New Users to Excel 2 July 13th 05 07:12 PM


All times are GMT +1. The time now is 11:35 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"