Preserving Named Tables as Pivot Table data sources after copying to new workbook (Excel 2010)

Have 2010 Excel Workbook with Named Tables and child Pivot Tables and several other support sheets.  I want to make a 'working' file --  with only copies of these Named Tables and Pivot Table
structures, and then I would populate the copied Tables with the 'real data' and crunch the numbers I need in this new working file.
I need to use VBA for this transformation (which I've tried).
Problem -- Upon copying the Named Table [Table1] and Pivot Tables [Pivot11] and [Pivot12] to the new stand-alone file, WORKING.xlsm, the Pivot Tables only recognize the Tables in the source file (I.e. the data source for Pivot11 is C:\...\'SOURCE.xlsm'!Table1),
and not simply Table1 in the new stand-alone file.
Longhand changing of the Data Source for each Pivot Table [Table1] from 'C:\...\SOURCE.xlsm'!Table1 to simply Table1 seems to be disallowed from all angles.
Anyone have clean VBA code that will copy the parent Named Table and its child Pivot Tables to an external .xlsm file without the absolute links back to the original source file ?

Hi Jon,
How do you change the data source?
Base on my test, we can change the data source by using this code below:
ActiveSheet.PivotTables("PivotTable1").ChangePivotCache ActiveWorkbook. _
PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"[path]!Table4" _
, Version:=xlPivotTableVersion15)
To copy and paste the Named Table and Pivot Tables, we could use
Range.Copy and
Range.PasteSpecial method.
To check whether the Pivot Tables parent is specify Named Table, we could check
PivotTable.SourceData property.
Regards
Starain
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Underlying tables of business Content data sources

    Hello Exerts,
    Can anyone advice me finding the underlying tables of business Content data sources?
    Regards.

    Hi,
    I dont think that there is any standard tcode or table to find out the underlying base tables.
    But you can try the below mehtod to to find out the tables related to a datasource.
    Go to RSA2 >>> give your Data source name and execute>>>>Double click on the extractor>>>Goto the function module Top include and see the list of tables used.
    This might help.
    Regards,
    Abhishek

  • How to fix Action Link Issue in Table and Pivot Table when used Section

    My OBIEE Version: OBIEE 11.1.1.6.5
    Issue Description: Action links (Navigate to BI Content) doesn't work in PIVOT TABLE or TABLE object when used Section area (one or more columns in Section area).
    If you want to recreate this issue please follow next steps:
    1.     First of all you have to create one analyse with min 3 columns (for example Time.“Calendar date“, Product.Product, „Base Fact“. Revenue -> from Sample Sales Lite )
    2.     From column properties -> Set value Action Link Interaction on some column for example Product.Product (choose Navigate to BI Content -> any created BI report )
    3.     Click Results Tab choose Pivot Table and assigned one dimension column to Section area
    4.     Click preview icon
    5.     When you click on action link nothing happens
    6.     If you drug and drop column from Section Area to Excluded, Table or Pivot table Area then Action Link works perfectly
    How to fix this issue?
    I'll be grateful for any help!

    This is Bug:15922681 - ACTION LINK NAVIGATE TO BI CONTENT DOES NOT WORK WITH ATTRIBUTE IN SECTION
    Upgrade to 11.1.1.6.6 will fix this issue.

  • Issue with data source after deploying

    We are experiencing an issue with our data source after deployment of a cube. On the datasource properties in Visual Studio 2012, we have the max connections set to 0 before the deployment. Once the cube is deployed, I can navigate to the <name>.0.ds.xml
    file and open it and see that the <MaxActiveConnections>0</MaxActiveConnections> is indeed set to 0. At some point over the next couple days, a process of the cube or some other action causes that value to get updated to some number too large to
    be converted to an int, and makes the datasource invalid. At that point we cannot view the datasource properties in SSMS, we cannot open the cube project from Visual Studio, and we’ve even had failures when trying to process the cube.  Is there a config
    somewhere that would cause this value to get overwritten, or some other behind the scenes process that we can look at?
    Our server information is:
    Microsoft SQL Server 2012 (SP1) - 11.0.3153.0 (X64)
                    Jul 22 2014 15:26:36
                    Copyright (c) Microsoft Corporation
                    Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
    Chad Dotzenrod SWC | TECHNOLOGY PARTNERS 1420 Kensington Road, Suite 110 Oak Brook, Illinois 60523-2144 http://www.swc.com

    Typically you would import the metadata from the source location and either use that location as the data source (and so not need to redeploy), or deploy it to a separate target location.
    The replace action is destructive as you've found, and effectively performs a drop table followed by create table. Hence any data in the table is lost.
    If you just want the Control Center Manager to correctly display that the table is deployed, try setting the action to "Upgrade". This will try to upgrade the deployed object to match the definition in OWB, but as the two are identical this will result in no changes. However, it will update the deployment records to indicate that the object is deployed.
    Nigel.

  • Problem with the ECC6 Data sources after migration

    Dear All.
    I transfer all the data source which is required for sales overview cube 0SD_C03.
    lets take two senairos.
    for example take 2LIS_11_VAHDR to BI 7 and then i migrate this data source with Export option after that i activate the data source and then i initialize the delta request with data.
    the request successfully generated in BI to R/3 but in monitor it shows in yellow for long period of time and no data arrive i wait for 30 min but nothing happen.
    in second one i initialize the delta process for data source 2LIS_12_VCHDR this data source i did't migrate but face the same situation.
    can you please explain what will be the cause of this and how i can manage to fetch the data from ECC6 client through Business content data source.
    i did not migrate the update rules into transformations.
    any help will be highly appreciated.
    kind regards,
    Zeeshan

    yes that is what exactly happen i did not do any thing as in the previous update rules there are written complex abap routine.
    please let me know how to generate the update rules as was there previously or if i have to revert the datasource back to the previous position what i have to do.
    i have figure out that why the data is not coming from SAP just need steps that how to revert the data source or make the new transformations with generated update rules or transformation.
    any help will be highly appreciated.
    Kind Regards,
    Zeeshan
    Edited by: Zeeshan haider on Jun 2, 2009 6:02 PM

  • How to change the Data sources after deploying the application ??

    Hi All,
    i want to know how to change the Data sources after deploying the application to the application server ???
    I'm using Oracle Application Server 10g Release 3 (10.1.3.1.0)

    Can you access the Enrprise Manager website of the target Application Server from your location? If so, you can change the datasource in it. If not, yo can bundle the datasource definition in your archive and use that one instead of the one configured in the target OC4J container. Or this will just be the responsability of your customer: whenever you send a new WAR file, they have to modify the datasource if needed and deploy the application?

  • Issue with table ROOSPRMSF entries for data source 0FI_AP_4

    Hi Experts,
    I am facing with an issue where we found incosistencies with table ROOSPRMSF in R/3 system.
    In BW , we have done initializations based on fiscal period selections (none of the selections overlap) for data source 0FI_AP_4.
    We have done in total 7 initializations. So in BW system in table RSSDLINITSEL we have 7 initialization requests.
    But in R/3 system we have 49 records for data source 0FI_AP_4 in ROOSPRMSF table out of which 42 are invalid records.
    I suspect that these 42 invalid records are created due to the execution of program RSSM_OLTP_INIT_DELTA_UPDATE when the tables ROOSPRMSF are actually holding the 7 initialization request entries.   Due to this each and every initialization request is linked to rest of the other intialization requests and ended with 49 records in table ROOSPRMSF table.
    Now our data loads are running fine but daily a short dump is raised . In the daily loads, BW init records in RSSDLINITSEL are compared with ROOSPRMSF entries and all the other 42 records which are invalid are written into system log and a short dump is raised.
    In order to fix these inconsistencies i checked for OSS note 852443. (Point 3 in OSS note)
    But it is specified to delete the delta queue for data source 0FI_AP_4 in RSA7 and instructed to execute the program RSSM_OLTP_INIT_DELTA_UPDATE so that the ROOSPRMSF table will be reconstructed with valid records available in RSSDLINITSEL. 
    From OSS note 852443 point 3
    "3. If the RSSDLINIT table in the BW system already contains entries, check the requests listed there in the RNR column in the monitor (transaction RSRQ). Compare these entries with the entries in the ROOSPRMSF and ROOSPRMSC tables with the INITRNR field. If, in the ROOSPRMSF and ROOSPRMSC tables for your DataSource source system combination, there are more entries with different INITRNR numbers, use transaction RSA7 in an OLTP source system to delete all entries and then use the RSSM_OLTP_INIT_DELTA_UPDATE report mentioned in the next section. For a DataMart source system, delete the entries that you cannot find in the RSSDLINIT table using the procedure described above."
    My question is if we delete the delta queue in RSA7 then all the tables in R/3 (ROOSPRMSF, ROOSPRMSC, Time stamp table) and BW (RSSDLINITSEL, initialization requests will be deleted) will be cleared. Then how will the program RSSM_OLTP_INIT_DELTA_UPDATE  copy entries into ROOSPRMSF table in R/3 ?
    Could any one please clarify this ?
    Thanks
    Regards,
    Jeswanth

    Hi Amarnath,
    Did you unhide the new field in RSA6 and regenerated the DataSource?
    Often SAP will populate newly added fields (belonging to the same (set) of table(s) used for extraction) automatically (e.g. SAP uses 'move-corresponding' in it's extractor-code, or, in this case, reading all fields from the DD, FM BWFIU_TRANSFORM_FIELDLIST).
    If the DataSource looks fine to you and the field is still not populated in RSA3 you can't go without a user-exit.
    Grtx,
    Marco

  • Master details tables and no xml data source

    Hello
    I want to create mater - details tables where details table will be repeated for each master row.
    So i created master table and placed detail table into master table cell.
    so what i want to have
    product1 quantity
                              - item1
                              - item2
    product2 quantity
                              - item3
                              - item3
    for now i have
    product1 quantity
                             - item1
                             - item2
                             - item3
                             - item3
    product2 quantity
    here is how i fill the table
    for i in 1..5 do
                ("Cell1r", "quantity" + i.ToString())
                ("Cell2r", "product" + i.ToString())           
            ] |>p
            for j in 1..2 do
                        ("Cell11", "product" + i.ToString())
                        ("Cell21", "serial" + j.ToString())
                        ("Cell31", "function" + j.ToString())
                    ]|>p
    i found an axample how to do it from xml data sourcem but have no idea and did not find how  to do it manualy(when i bing by name from code dynamicaly)

    i found hot to do it with xml source
    http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000241.html
    but how to do it manualy ?

  • How to check which Table & Field is populating Data source

    Hi,
    My requirment is to check from which Table and Which field the data is extracted in the data source
    Data Source : 0MAT_PLANT_ATTR
    Field in Data Source :  MINBE
    Now i want to check from where (Table/Field) in R/3 is populating the Field MINBE in Data source 0MAT_PLANT_ATTR
    How can i do that

    Hi,
    Since you have the extract structure and the extractor, you can try Extractor Checker RSA3.Execute ST05 (activating SQL Trace), switch on the trace and execute the extractor checker. Once the extractor checker presents the results
    switch off trace. The clcik on Display trace and you will see all the tables that were hit by the extractor checker to retrieve data and present it to you.
    Note: Set the break point in the Extractor Function module.
    View the ST05 Extended Trace list. The Object name shows the Tables accessed.
    Hope this helps.
    Thanks,
    JituK

  • How to select from multiple output tables in the SAP Data Source

    Hi,
    We're using the SAP Data Source to display SAP data in our portal from the Bapi: BAPI_INFORECORD_GETLIST. When defining the Bapi Meta Data we can select data from one of the two output tables (INFORECORD_GENERAL and INFORECORD_PURCHORG). But we want to select data from both tables (some columns we want to show are in INFORECORD_GENERAL and some are in INFORECORD_PURCHORG) .
    How can we do this ?
    With regards,
    Ramon van der Weiden

    You can query multiple TimesTen databases, but your original question was about joining tables from two databases, which is not supported.
    Using Cache Connect to Oracle to query an Oracle database is not distributed. It's still one single Oracle database you are querying. You cannot join a table in the TimesTen database with a table in the Oracle database, this is not allowed.
    If you are willing to share your business requiremens, we can take a look and see what solution might work for you. Would you like to discuss this offline?
    Susan

  • Help req in table s525 ( any standard data source avaialable  for table s5)

    Hi all,
    i want to know any standatrd data source available for the table  s525  - MRP Exception Message Detail
    pl help me on this ..
    Thanks
    sivakumar r

    pl any one help me
    any std data source available for the table s525

  • Not able to create table in analysis services data source

    Hi All,
    I am creating a cube with Enterprise edition template when I try to generate the schema I am getting below error.
    All the services are in started state.
    Kindly help us to rectify

    Hi Khushi,
    Please check your user account or credential have sufficient permission to create objects in the underlying data source.
    Regards,
    Elvis Long
    TechNet Community Support

  • No data in R/3 data source after extraction!

    Hello All,
    i am extracting the data from R/3 source system ( 4.7 ides system).
    after succesffully transferring the data source and replicating it to the BW, i had created a infocube and scheduled the info package so that R/3 data source data gets uploaded into the Info cube created.
    after scheduling in the header tab of monitor screen i found the error messege as "no data in R/3 data source, check your data source in R/3".
    is it that data does not exist in R/3 Business content data source or is that data has not uploaded into BW?
    can nay body here thorw some light onto it?
    Ravi

    Hi Ravi,
    Please check the tables associated with your datasource and look if the data is available inthe respective tables.
    You can also check the extracted records in T.code RSA3 in R/3 for your datasource.
    Hope it helps!!!!
    Regards,
    Amit

  • How can I delete an ODBC data source after 10g client has been uninstalled?

    I uninstalled the 10g client and now when I attempt to delete the ODBC data source, I get an error: "The setup routines for the Oracle in Oraclient10g_home2 ODBC driver could not be found. Please reinstall the driver. I re-installed the client and I get the same error, but I had to specify a new home. I still get the error. Anyone have an answer or a workaround to deleting the ODBC entry so that I can re-create with the same name later under the 9i client?

    I have the same problem... and nobody gots the point:
    1st. the ODBC and the client/home exists on the machine...
    2nd. the client/home is unistalled and so...
    3rd. tada! Now we have a impossible-to-unistall ODBC entry!
    That is happening on a Windows, at last to me...
    Please, help us if someone knows how to remove this ODBC entry... if know how to DO the stuff (permissions, system, all that things is answered above).
    Best regards,
    Bruno Araujo

  • Data Source and Report on new BO

    I have a new BO. I have created and activated a new data source for the BO. I can create a report based on this new BO. How can I deploy(assing) the report to my partner work center?

    For information, please see [Add a Report List View to a Work Center|https://my020062.sapbydesign.com/sap/a1s/cd/wkt/doc/ktp/Products/A1S_UID/UID_Tool_Environment/UID_Tool_ByDStudio/HT_AssignReporttoWorkCenter.xml?ptc=text%2fhtml&prof=X&COMPONENT=A1S_PDI&INDUSTRY=&LANGUAGE=en&REGION=&RELEASE=300&TASK=CR_VIEW].
    Edited by: Helen Fawcett on Jun 11, 2012 8:26 AM

Maybe you are looking for