Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Error# 11004, Unable to set the property error

I am programmatically generating a pivot chart. I am trying to turn off the subtotals, but attempting to set the subtotals generates an error. I have an Array of strings containing field names for the pivot chart and within the script debugger I can see that the oPivotField has a value that is a PivotField type. Even in the immediate windows accessing the subtotals property generates an error. Anyone run into this?

For Each sFieldName In aFieldList
iCounter = iCounter + 1

Set oPivotField = oPivotTable.PivotFields(sFieldName)
If Not (oPivotField Is Nothing) Then
oPivotField.Orientation = xlDataField
oPivotField.Position = iCounter
oPivotField.Subtotals(1) = False <*** Generates Error
End If
Next

Thanks,

Sam

--
_______________________________
Sam Santiago

http://www.SoftiTechture.com
_______________________________
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
Runtime Error 1004 Unable to set the top property of the picture c JB Bates[_2_] Excel Discussion (Misc queries) 1 March 3rd 10 08:04 PM
Error 1004: Unable to get the axis property Ana via OfficeKB.com Charts and Charting in Excel 1 June 24th 09 11:47 AM
Unable to match property error papou[_2_] Excel Discussion (Misc queries) 0 October 4th 07 10:07 AM
VBA error: Unable to set the Values property of the Series class Marco Shaw Charts and Charting in Excel 1 July 12th 05 02:34 PM
Unable to set the colorIndex Property of the Interior Class Error GriffyGriff Excel Programming 3 October 3rd 03 04:37 PM


All times are GMT +1. The time now is 02:45 AM.

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"