Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Pivot table programming

I have a line of code that grabs the totals lines from a pivot table and
formats them. However, if there is no data in a pivot tables, this line
errors out.

Is there a way to block this line if there is no data on a pivot table?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default Pivot table programming

Without seeing your code it's hard to come up with an exact solution,
however try getting the pivot items count and verify that it is 0,
something like this:
ActiveSheet.PivotTables("PivotTable1").PivotFields (1).PivotItems.Count

Charles

havocdragon wrote:
I have a line of code that grabs the totals lines from a pivot table and
formats them. However, if there is no data in a pivot tables, this line
errors out.

Is there a way to block this line if there is no data on a pivot table?


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
Pivot Table Programming Matt Childs Excel Programming 2 October 21st 05 06:22 PM
Excel vba pivot table programming [email protected] Excel Programming 2 March 11th 05 04:34 AM
Pivot Table Programming Marvin Excel Programming 1 January 25th 05 10:54 PM
Pivot Table Programming OrrLyfe Excel Programming 3 November 1st 04 12:44 AM
Pivot table Programming Kris Excel Programming 1 October 5th 04 09:03 PM


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