?
Solved

Vba to Fix Pivot overlapping

Posted on 2013-05-15
2
Medium Priority
?
643 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 93

Accepted Solution

by:
Patrick Matthews earned 2000 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

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…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

770 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