-
WSKislany
AskWoody LoungerI changed the name, but it still didn’t work. The only way it actually ‘did something’ was when I took out the ‘Dane’ as in RowFields:=”Dane”. However it stopped working as soon as it hit a next occurance of ‘Dane’, which in this case was (copied from the original macro): ActiveSheet.PivotTables(“Tabela przestawna1”).PivotFields(“Dane”).PivotItems( _
“Maksimum: ZUNI”).Position = 1I checked in the raw data and I had a column heading called ‘groups’ but Dane didn’t exist in the raw table at all. I have no idea what it is actually.
Nevertheless, I got a copy of the file that my colleauge succesfully ran in Poland, and this is how the Dane is displayed in his report (see attached file).
Any further ideas on how to solve this?
Thanks in advance!
K. -
WSKislany
AskWoody LoungerI changed the name, but it still didn’t work. The only way it actually ‘did something’ was when I took out the ‘Dane’ as in RowFields:=”Dane”. However it stopped working as soon as it hit a next occurance of ‘Dane’, which in this case was (copied from the original macro): ActiveSheet.PivotTables(“Tabela przestawna1”).PivotFields(“Dane”).PivotItems( _
“Maksimum: ZUNI”).Position = 1I checked in the raw data and I had a column heading called ‘groups’ but Dane didn’t exist in the raw table at all. I have no idea what it is actually.
Nevertheless, I got a copy of the file that my colleauge succesfully ran in Poland, and this is how the Dane is displayed in his report (see attached file).
Any further ideas on how to solve this?
Thanks in advance!
K. -
WSKislany
AskWoody LoungerThanks a lot, that makes sense. I change the chart type from stacked to regular line and now it works fine. Will also keep in mind the tip with the stacked line for future reference.
Rgds,
Kislany -
WSKislany
AskWoody LoungerThanks a lot, that makes sense. I change the chart type from stacked to regular line and now it works fine. Will also keep in mind the tip with the stacked line for future reference.
Rgds,
Kislany -
WSKislany
AskWoody LoungerOk, thanks, I’ll give it a try and if it doesn’t work, will post back.
Regards,
K. -
WSKislany
AskWoody LoungerOh, brilliant, the link works now fine, thanks a lot. Great idea with naming the ranges, haven’t thought of that.
Regards,
K -
WSKislany
AskWoody LoungerI ran the codecleaner and followed you steps, when I now saved the file (didn’t give me error messages this time) I got a filesize of 21 Mb (down from 75, but still way too much compared to the < 1M I was having before. I can't send it like this to the client unfortunately, not with this file size…
Does it mean the file has to be rebuilt from scratch. I suppose? It's a lot of work in there and I was trying to avoid that if possible…Regards,
K -
WSKislany
AskWoody LoungerHm, that is also a solution, haven’t thought of it, thanks a lot.
I found meanwhile something else that works, I used the Y Axis value and linked the second cell to that. Then just repositioned it and it prints now fine.
Thanks again,
K. -
WSKislany
AskWoody LoungerThanks, great idea, just what I was looking for.
Regards,
K. -
WSKislany
AskWoody LoungerHello,
I ran your macro, however I get at the line:
If oItem.RecordCount = 0 And Not oItem.IsCalculated Then oItem.Delete
a Runtime error 1004:’Application defined or object defined’ errorUnfortunately my knowledge of pivot tables (and macros with this regard) is very limited, so I don’t know what to look for…
Thanks,
K. -
WSKislany
AskWoody LoungerJust to show you the final result of what I wanted to achieve. I’ve resized it, etc, and you can see the difference between this and the ‘regular’ check-boxes.
Thanks to Andrew, I did it. For some reason it didn’t work before, but it is fine now.
Thanks again,
K. -
WSKislany
AskWoody LoungerHi Andrew,
Thanks a lot for the attachment and the help. it is very good indeed, except for the actual character that I get as caption, when I click on it, the tick-mark changes to a flower kind of thing, see in the attachment, and I’m not sure I understand why…I tried it on another computer as well, and I got this other character there too.
Thanks,
K. -
WSKislany
AskWoody LoungerThanks for all your input on this problem, I know it’s pretty complex, I’m struggling with it for a while now.
Since the 0 which denotes the end of the range is also used in the formula for something else (as an actual data for products that do not have information in them), is it possible to change that first 0 to something else (in my example column M, which denotes the end of the range) and also that reference to the 0 to whatever will be changed in the column M? Maybe in that case the formula will not stop at the first occurance of 0, because it will not search for it, for example if I replace the 0 with a * or any other character…just a thought. But how can I change then the formula to reflect the changes?Thanks,
K -
WSKislany
AskWoody LoungerYes, I actually did that, and it works fine in this particular case. However I haved a large number of data and while some rows start with actual data, some start with 0. It basically keeps track of products and when they entered the market. Not all the brands entered the market in January/February, some in the middle of the year, for example, so the data before that is 0. I was thinking of a generic solution that finds where the data actually started, rather than me going through 1000’s of lines and fixing each of them separately…
Thanks,
K -
WSKislany
AskWoody LoungerDecember 12, 2002 at 2:13 pm in reply to: Delete detail subtotals in pivot tables (Excel 97) #638063Thanks for your help.
I tried out what you suggested, and I got the error message: Unable to set the Subtotals property of the PivotField class
Here is the relevant part of the code:
with
With .PivotFields(“RSE”)
.Subtotals = Array(False, False, False, False, False, False, False, False, False, False, False, False)
‘in debug mode, it fails at that line with the above message
End Withend with
Regards,
K.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
5 hours, 3 minutes ago -
Office apps read-only for family members
by
b
7 hours, 39 minutes ago -
Defunct domain for Microsoft account
by
CWBillow
4 hours, 31 minutes ago -
24H2??
by
CWBillow
27 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
16 hours, 24 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
9 hours, 38 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
4 hours, 28 minutes ago -
two pages side by side land scape
by
marc
2 days, 5 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
2 days, 7 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
1 day, 10 hours ago -
Security Essentials or Defender?
by
MalcolmP
1 day, 13 hours ago -
April 2025 updates out
by
Susan Bradley
8 hours, 9 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
1 day, 6 hours ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
20 hours, 37 minutes ago -
Creating an Index in Word 365
by
CWBillow
1 day, 23 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
11 hours, 11 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
3 days, 2 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
3 days, 5 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
3 days, 7 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
3 days, 5 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
2 days, 23 hours ago -
I installed Windows 11 24H2
by
Will Fastie
1 day, 5 hours ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
3 days, 11 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
4 hours, 36 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
3 days, 19 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
3 days, 3 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
3 days, 4 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
4 days, 12 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
4 days, 21 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
20 hours, 37 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.