?
Solved

Copy pivottable, change connection properties in copied pivottable and first pivottable is also changed

Posted on 2010-03-23
3
Medium Priority
?
399 Views
Last Modified: 2012-05-09
Hello,

We want to build a workbook with different pivottabels. All pivottables are connected to the same oracle-database, but have all a small difference in their connection property SQL-Query

The easiest way in this case is to copy the pivottable and edit the Query. When we do that, however, the changes are also implemented in the source-pivottable.

How come and how can we work around for this ?

Steven
0
Comment
Question by:Steven Vermoere
  • 2
3 Comments
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 28338160
How are you changing the query? Pivot tables don't have a CommandText property - that belongs to the PivotCache and if you change that it will affect all tables that use that cache.
0
 

Author Comment

by:Steven Vermoere
ID: 28338411
It is done by choosing Pivot Table Tools, Options, Change Data Source, Connection Properties. There is no VBA involved.
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 1000 total points
ID: 28339927
Same principle applies though - if you change the connection's properties then the original pivot table that was using it will also have its data changed (as they are using the same connection).
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
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…

601 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