LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Pivot Tables and Charts

I have a button that creates a pivot chart and table. The data consists of
0's and 1's. This is the code I am using ...

With ActiveChart.PivotLayout.PivotFields("0")
.Orientation = xlRowField
.Position = 1
End With
With ActiveChart.PivotLayout.PivotFields("0")
.Orientation = xlDataField
.Position = 1
End With
ActiveChart.PivotLayout.PivotFields("0").Caption = "Types of Reports"


The problem is that the first cell has to show "0" for the macro to work.
Our data could start with "1". How do I make the "0" in parenthesis different
so that it grabs the first cell content as the first field for the pivot
chart and table. Help!!
--
LizW
 
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 Tables to Charts Bolgomar Charts and Charting in Excel 2 November 19th 08 05:55 PM
Pivot charts & tables Graeme at Raptup Charts and Charting in Excel 13 June 19th 08 05:32 PM
Pivot tables Charts HERNAN Excel Discussion (Misc queries) 2 October 8th 07 06:09 PM
Pivot Tables and Charts amanda Charts and Charting in Excel 1 May 16th 06 10:52 PM
Pivot Charts / Tables [email protected] Excel Worksheet Functions 1 January 21st 06 02:35 PM


All times are GMT +1. The time now is 09:41 AM.

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

About Us

"It's about Microsoft Excel"