Solved

Vba to Fix Pivot overlapping

Posted on 2013-05-15
2
614 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

717 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