Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-24-2017, 01:35 AM
chrisdenslow chrisdenslow is offline Changing Existing Pivot Table Source from a DB to a worksheet Windows 7 64bit Changing Existing Pivot Table Source from a DB to a worksheet Office 2010 64bit
Novice
Changing Existing Pivot Table Source from a DB to a worksheet
 
Join Date: Jul 2017
Posts: 2
chrisdenslow is on a distinguished road
Default Changing Existing Pivot Table Source from a DB to a worksheet

Morning,



We currently have some Excel 2010 spreadsheets that have pivot tables in them.

The pivot tables are based on a ODBC connection to a database. We have written some VBA that will extract the source data required from another database to a worksheet and execute some processes on it.

When I try to alter the existing pivot table's data source and change it from a External Datasource Connection to a table range in the workbook I am unable to do so. 'Select a table or range' option is greyed out.

Can someone tell me if there is a way in VBA to change the data source fron existing Excel 2010 Pivot Table from an external datasource to a named range on a sheet.

Thanks
Chris
Reply With Quote
  #2  
Old 07-24-2017, 04:50 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is online now Changing Existing Pivot Table Source from a DB to a worksheet Windows 7 64bit Changing Existing Pivot Table Source from a DB to a worksheet Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Does this help ?https://stackoverflow.com/questions/...rksheet-within
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 07-24-2017, 04:52 AM
chrisdenslow chrisdenslow is offline Changing Existing Pivot Table Source from a DB to a worksheet Windows 7 64bit Changing Existing Pivot Table Source from a DB to a worksheet Office 2010 64bit
Novice
Changing Existing Pivot Table Source from a DB to a worksheet
 
Join Date: Jul 2017
Posts: 2
chrisdenslow is on a distinguished road
Default

Hi,

That looks like its going to do the trick. I'll need to actually try it later today or tomorrow but thank you for the quick response.

Fingers crossed...
Chris
Reply With Quote
  #4  
Old 07-24-2017, 05:01 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is online now Changing Existing Pivot Table Source from a DB to a worksheet Windows 7 64bit Changing Existing Pivot Table Source from a DB to a worksheet Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Np. I just used your title to search Google
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro recorder changing reference style for columns in pivot source andylaw31 Excel Programming 0 06-15-2016 08:45 AM
Changing Existing Pivot Table Source from a DB to a worksheet How do I find Source of Pivot Table bobmayo Excel 2 05-16-2013 12:42 PM
Copying pivot table and graph to a new worksheet artner0112 Excel 0 02-02-2013 07:19 PM
Changing Existing Pivot Table Source from a DB to a worksheet VBA: Include Dynamic Sheet Name In Pivot Table Source Data ibrahimaa Excel Programming 2 04-28-2012 12:27 AM
pivot table source data hannu Excel 0 07-03-2010 04:54 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft