Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
aw aw is offline
external usenet poster
 
Posts: 19
Default Pivot table - eliminate rows out of the table

I have pivot table that already generated by macro.

And now get problem & need to solve.


Actually I have to hide our inter-company code that €˜may or €˜may not
appear under my pivot table above.

We have all together Nine inter-company code but may not appear all the time
for each running of pivot table.

I try to hard code all these inter-co code under my VB, but got error if in
case no such inter-co code appear that time.

How I can solve this by searching the customer code to check whether they
are equal to my inter-company code & then to hide if it is true.


my pivot table structure (simpify)

Customer code Customer €¦ Sum of Total
---------------------- --------------
-------------------


Also, here my coding by €˜recording function in VB, for hidden cust_code=blank

ActiveSheet.PivotTables("PivotTable1").PivotSelect "Cust_code['(blank)']", _
xlDataAndLabel, True
Selection.Delete



--
aw
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
Rows to columns in a table or pivot table Jesper Audi Excel Discussion (Misc queries) 4 November 3rd 09 07:00 PM
Code for a Macro that allows a Pivot table to be repeatedly run (fora dynamic rows in a table, but static field names) Mike C[_5_] Excel Programming 1 February 11th 08 04:30 AM
How to eliminate xero values from pivot table and list top 10 only Dinesh Excel Worksheet Functions 0 February 19th 06 03:48 AM
Eliminate Duplicates in Pivot Table roadkill Excel Discussion (Misc queries) 2 February 3rd 06 06:13 PM
Pivot Table- how do I eliminate duplicates in count of name Isabelga Excel Discussion (Misc queries) 1 January 16th 06 06:15 PM


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