Solved

Vba to Fix Pivot overlapping

Posted on 2013-05-15
2
527 Views
Last Modified: 2013-05-15
Morning everyone,

I have a macro that loops through a directory and pulls back data from sql to update all the data tabs.  Then I refresh all the pivots in the workbook.  The issue I am having is sometimes the pivots will overlap and I will get an error message of "Do you want to replace the contents of the destination cells".   Since I am looping through 50 workbooks and at different time this can occur I was hoping that there was some way to programatically deal with the issue.  

Thanks,
Montrof
0
Comment
Question by:montrof
2 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 39168094
It's really more a spreadsheet design question more so than a VBA question.

Basically, never place PTs such that upon refresh the PT can expand to destroy other content.

I follow a general rule of always:
Putting PTs on their own worksheets, away from the source data
Not putting multiple PTs on a single worksheet
0
 
LVL 1

Author Comment

by:montrof
ID: 39168297
Well it was not my design I am just automating the loading of the data to the spreadsheets.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now