Powerpoint - remove embedded data from table - excel

I pasted a pivot table from excel to powerpoint and chose the embed option when doing so. The deck is now very large (20MB +) due to the embedded data. Is there a way to keep the table but just drop the embedded data?

The problem is likely because you're copying from a very large Excel workbook. When you embed even one cell from an Excel worksheet, the entire workbook actually gets embedded in the PowerPoint file.
One way around this is to select the information you want to embed, copy/paste it into a new Excel workbook (NOT a new worksheet w/in the workbook), then copy/paste/embed into PPT from the new temporary workbook.
At least this'd work with regular worksheet data; it may not work for Pivot Tables (they'd be dependent on other data that wouldn't get pasted from one worksheet to the other, I'm afraid). But it's worth a shot.

Related

How can I use Excel VBA to update links only in a specific worksheet and not the whole workbook?

I have an Excel file where some data from multiple geographies come together. People from one geography don't have access to the sharepoint of other geographies. Each geography has its own worksheet where the data should be updated once a month.
I would like to have a button on each worksheet where once a month someone from each geography updates their worksheet before it is bundled together into one worksheet.
The function .UpdateLinks only works with the whole workbook which is not desirable since the sharepoint access is divided.
I tried to set Excel calculation to manual and afterwards made a button to .Calculate that specific sheet but it seemed to work at first but is not reliable.
ThisWorkbook.Sheets("worksheet1").Calculate '(inconsistent)
ThisWorkbook.Sheets("worksheet1").UpdateLink '(doesn't work)
I would like to have a button to update links only in a specific worksheet and not the whole workbook.
The Workbook.UpdateLink method is located in Workbook and does not exist in Worksheet therefore it is only possible to update the links of the whole workbook but not of single worksheets only.
Updating links in single worksheets only is not supported.

Excel Charts Data Range Reference

I have a workbook with many tabs, all of which are identical in format. I want to have the same embedded charts in each worksheet. I can't seem to copy the charts from one tab to other tabs without the new data range being tied to the original worksheet tab name. My first choice is to refer to the data range as B6:B87 or =B6:B87 WITHOUT the reference being ='TabName'!B6:B87, but Excel doesn't seem to allow it.
Make copy's of the data range on the same page than cut it and past it on the page you want.it wont have the sheet name where it was copied.
Copy the entire sheet, including chart and data. The copied chart links to the data range on the copied sheet. Now replace the original data on the copied sheet with the new data. The copied chart links to the new data on the copied sheet.

excel 2010 Paste Link radio button disabled with chart object

I've created a chart in a workbook. I want to copy and paste that chart into another workbook in such a way so that when I update the original data it automatically updates both charts.
Between Excel and Word there are no problems: I can paste the chart as link (see below):
but in Excel the same option seems to be disabled:
Any idea to solve my problem? The chart copied in the destination only updates if the original file is open, and the data changed!
Many thanks in advance.
I've not done this much, but when I have I generally just paste (i.e. Ctrl+C). The chart series should be automatically updated to refer to the source workbook, the relevant worksheet within that workbook, and keep the cell ranges the same.
So my thought would be that the option isn't disabled, it's just implicitly built in to the normal paste. Which would make sense; The use-case for keeping the same source range of cells, but on the new worksheet being pasted to (even inside the same workbook, let alone in a different workbook) is not exactly one that seems crazy useful.

Can I copy query tables (and connections?) to other workbooks?

I have a workbook (wkbk1) that has a sheet with eight different query tables (a.k.a. data tables) on it -- NOT PIVOT TABLES. They all point to the same external Excel workbook (wkbk2) for their data which is a single sheet with a group of named ranges.
The data for each table in wkbk1 comes from a named range in wkbk2. How can I copy the sheet of eight different tables (from wkbk1) to other workbooks (wkbk3, wkbk4, etc)?
Is it even possible for the query table and its data connection to transfer with the sheet? So far I can't do it manually (no coding). If coding is required I'm fine with that, just need help with it. I have intermediate VBA coding experience.
I'm using Excel 2007/2010.
In Excel 2010, I right click on the sheet tab and choose Move or Copy. Select the destination workbook and check "Create a Copy". The new sheet has the QueryTable on it and refreshes as expected.
So I think copying the sheet will copy the QueryTable and all its properties.
My QueryTable used MSQuery and pointed to another Excel workbook.

Exporting Excel data into a PowerPoint presentation

I am trying to write an add-in for Powerpoint, the user should be able to select cells in an Excel worksheet and then go to the Powerpoint slide he would like to paste that table in, after starting the Add-in, a macro should create a table and copy cell by cell. Afterwards the macro will format the PowerPoint table according to our formatting guidelines. I am running into some issues now:
1) How can I go through the cells within a selected range in Excel, I tried to loop through the cells within the selected range, but neither this nor counting the rows/columns with in the selected range works (I am rather unfamiliar with Excel VBA)
2) What is the best way to copy data from Excel to Powerpoint? I have seen some suggestions that use a string array, that reads in all the data first; some users re-use one variable to copy the data and some do it directly from a XL to a PPT reference, what are the advantages of the different approaches?
Thanks a lot
s
For your first question, here is a snippet of code that works (yet, it depends on what you intend to do):
Dim C As Range
For Each C In Range("A1:A100")
'do stuff
Next C
For your second point, it depends on the results you expect :
a PowerPoint formatted array
an Excel Object embedded into PowerPoint
copy-paste the values inside the slide content
Once you have chosen, it's easy to find ressources on the web to do what you want.

Resources