Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2014, 06:39 AM
galkej galkej is offline Run Time Error '1004' Windows 8 Run Time Error '1004' Office 2013
Novice
Run Time Error '1004'
 
Join Date: Feb 2014
Posts: 3
galkej is on a distinguished road
Default Run Time Error '1004'

My error is: Unable to get PivtoItems property of the PivotField Class.



My code is below. I am trying to make certain fields within a Pivot table visible/invisible. I am trying to do this within a Macro. Is this possible?

With ActiveSheet.PivotTables("PivotTable3").PivotFields ("Month and Year")
.PivotItems("(blank)").Visible = True
.PivotItems("(blank)").Visible = True
End With
With ActiveSheet.PivotTables("PivotTable3").PivotFields ("Month and Year")
.PivotItems("(blank)").Visible = False
.PivotItems("(blank)").Visible = False
End With


Sheets("SCORE").Select
Range("B1").Select
End Sub
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Time Error '1004' Run-time error '1004': Document not saved. The document may be open... doctor_who12 Excel Programming 1 01-22-2014 04:47 PM
paste fails error 1004 in VBA Excel 2010 mikec Excel Programming 17 05-08-2013 03:11 PM
Run Time Error '1004' Run time error 1004 yonasan Excel Programming 3 06-12-2012 11:08 PM
Run Time Error '1004' runtime error 1004 gbaker Excel Programming 11 06-06-2012 05:23 AM
Word Visual Basic error - run time error 504 crazymorton Word 11 01-13-2012 04:32 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft