I am trying to create a presentation file which will contain many tables. These tables though might change. So, I would like to know if there is there a way to link the numbers of a table from an excel file, with the numbers of a table in a powerpoint slide ?
It's easy.
Steps:
Create the table in Excel
Copy the table in Excel
Prepare the slide in PowerPoint
Paste Special the Table on Your PowerPoint slide, using Paste Link
Resize and position the table object
And it's done!
Example:
Here's an example image of Paste Special and Paste Link options:
Hints:
If you update the Excel spreadsheet data, when the PowerPoint file is opened, the new data will be retrieved and displayed. (The system mays asks you to Update the linked data. Always update it with the latest information)
If you move the Excel file, the link will not be able to update as it won’t be able to find the file in the original location. If this happens, just fix the spreadsheet link location.
If you want to edit the data in Excel, you can double click on the table object on the PowerPoint slide and the Excel spreadsheet will open.
If you want to prevent others from changing the data in the Excel spreadsheet, make the Excel file a read-only file. (This will allow them to see the data in Excel when double clicking on the inserted table, but they won’t be able to save any changes to the file)
Related
I have a huge PPT presenation (>400 slides) and want to extract certain pages based on an Excel table and create a new, smaller presentation.
I created an Excel table which includes the page numbers as well as the title of each slide in the PPT presentation.
The goal now is, to have a macro that allows me to create a new PPT with all the slides that are mentioned in my (sorted) Excel table.
As I am new with VBA (I am only able to copy/paste code and run it afterwards), I was not able to try anything.
Thanks for your help!
I found a weird stuation in my Excel file and just want to know how the creater made it and how to automatically solve it.
Someone keep sending me an excel file with only one sheet which contains one Pivot table.
The weird thing is that I cannot find the data source which this Pivot Table should link to.
Even I tried to click "unhide" button, there is no hinden sheet in this file.
However, when I double click the cell in this Pivot, there will be one new sheet appear in this file. And this new sheet is the data source of this Pivot.
Is it possible to create a Macro to call out this hidden sheet without I double click it manually?
Thanks in advance.
The data is likely stored in a PivotCache - this data is not found on a worksheet but is saved as part of the file.
https://trumpexcel.com/pivot-cache-excel/
See previous question here on SO:
Recreate Source Data from PivotTable Cache
Alternatively, if you are comfortable with XML and your workbook is saved in xlsx format, you can unzip the file (add a .zip extension and double-click) and find the pivotcache details stored as XML in pivotCacheDefinition1.xml and pivotCacheRecords1.xml in the xl\pivotCache folder.
I have a Powerpoint file with many charts that I expect many different users to use with their own data. I'm trying to make this Powerpoint as easy to use as possible by writing VBA into each data source (by data source, I mean the default Excel sheet that is embedded in Powerpoint when you select "Insert" > "Chart"). My goal is to allow them to click the chart, select "Edit data," paste info from a PivotTable into the Excel window that pops up, and let the macro does the rest. The code I can write myself, but I have a different problem:
I've tried writing macros in these embedded Excel files but they do not save once they are closed (I assume they must be .xls or similar and not .xlsm). How can I get these macros to save? I've tried drag and dropping .xlsm files into Powerpoint, but it shows the actual charts on the slide and it's difficult to work with. I'd like the Excel files to be hidden from Powerpoint view and easily accessed using the "Edit data" option.
I hope this description makes sense, if not I can explain further / answer any questions.
Thanks!
Can't you just provide PowerPoint charts, and have them paste data into each chart's DataSheet in PowerPoint?
Of late, PPT does its best to convert pasted charts into PowerPoint charts (same basic engine as Excel charts but they're not Excel objects). You can get round this if you copy the chart from XL, switch to PPT and on the Home tab, click the downward pointing arrow below Paste, pick Paste Special and choose to paste as embedded Excel chart object.
You can then doubleclick the pasted object and Excel will launch for in-place editing.
Or you can right-click, choose "Macro enabled worksheet object" or whatever, and then opt to Open or Edit. Edit gives you in-place editing within the PPT window, Open launches the embedded data in a full copy of Excel.
I have a template in excel, and a powerpoint template.
in the powerpoint template I have several charts linked to the excel template.
I want to make a loop that changes something in excel, so that the chart updates, "saveas" for both the excel and powerpoint file, so I have eg. 100 different excel files and 100 different powerpoint files, all build on the templates. I want to be able to manually alter some data in those 100 excelfiles, with the link to powerpoint still intact, so they are updated too if needed.
however, when I open the powerpoint templates, right click on a chart and select "edit data", then the chart is still linked to the excel template, not the saveas version of the excel file?
how do I change the link of a chart in powerpoint, to a different excel filename? the structure in the two excel files are identical.
the chart is created in excel and copy/pasted as "keep source formatting and chain data" (translated from danish)
any help would be greatly appreciated.
I have also tried a solution where the copy/paste is done via vba into an empty powerpoint template, but that is more time consuming, and powerpoint often crashes.
Assuming you have a reference to the shape represented by the linked chart in oSh, this will show you the link:
Debug.Print oSh.LinkFormat.SourceFullName
And this will change it to some other file:
oSh.LinkFormat.SourceFullName = "c:\some\path\yourfile.xls"
Most likely there will also be a !chartname or the like after yourfile.xls ... you'll need to include that.
And save the Excel files first, THEN change the link in the PPT to point to them. If you change the link to point to a non-existent file, PPT won't throw any errors; it'll simply leave the link unchanged.
I received an Excel file that references some data from a MDB file. When I open the file, I am only able to see summary based on dropdowns and pivot tables. The data from the MDB file appears to have been embedded in to the XLS file itself. If I look at the file in Notepad++ I can see the information I'm looking for (albeit mixed in with the binary data of the xls file.)
I'm curious if anyone knows of a way to extract this type embedded data out of an XSL file. The original MDB file is long gone.
If the dropdowns are really pivot page fields, then you probably have pivot tables based on external data. To check, select a cell that's in a pivot table. Open the VBE (Alt+F11). Go to the Immediate Window (Ctl+G) and type
?ActiveCell.PivotTable.PivotCache.CommandText
?ActiveCell.PivotTable.PivotCache.Connection
and that will give you the information about where the data is. The data you see in Notepad is the data stored in the pivot cache. If you can't get to the mdb, you won't be able to refresh, but the previously fetched data will still be in the cache.
Remove all filters and double click in a cell containing a Grand Total figure: Excel will drill in the data in the PivotCache and will open a new worksheet with all the rows summed up in that figure.
Only thing I can think of: have you checked to see if there are any hidden worksheets in the file? Right-click any worksheet tab at the bottom of the workbook and select Unhide... From there, you can see if there is a hidden sheet containing the raw data.