How to inject excel data to embed powerpoint chart with VBA - excel

I want to know how we can inject excel data into embed powerpoint chart.
Any information that I search taught me how to do it, but with create new presentation. I need to update the existing chart from powerpoint using data from excel.
And the method should not be update link or something. Because I deal with more than hundred charts, I'm afraid linked method will take huge resource that cannot handle by my device. The other reason is I need to keep the chart editable in powerpoint (something that cannot done with paste link method).
Any suggestion?
Thanks

it depends of the version of you office. I have 2016 office, so it is very simple to do
these are the steps
Go to INSERT and lok for "Tables", then the opcion called (excel)
An excel view is going to open, then in the sheets you can inser your information, make a table format also
In the excel view the go to Insert, Recommended graphics and select the one you want
here some photos
step 1
excel view

Related

Pre-populating PowerPoint file with Excel input

I am currently in the following situation:
I have an Excel file where I perform calculations and charts + diagrams are created based on the calculations.
I have a PowerPoint report where I have to copy-paste these visualizations into.
I will need to repeat this process for many Excel files, all containing the same lay out. You can view them as a questionnaire: each Excel file is completed with different answers, though the structure remains the same.
Is there a way for me to create a template PowerPoint report file, where at the start I select which Excel file to 'load', and it pre-populates my PowerPoint file with the correct charts from the selected Excel file?
ndeed, there is a free option available. With SlideFab 2 (lite) you can automate Excel to Powerpoint without coding: You would need to setup the Powerpoint template and link all shapes with the required Excel ranges or charts. Then SlideFab creates the slides for you. When the structure is really the same, you could just let SlideFab connect to the next Excel file and rerun the slide-making process again.
You could also consider using RDBmerge to collect all workbook sheets into one Excel and using formulas to create a kind of staging area which is used for linking with Powerpoint. This would have the benefit that when you iterate a list of worksheet names, your lookup (e.g. using vlookup or index/match) functions would grab the appropriate data into the staging area. SlideFab could then create all slides at once through changing the selected worksheet in a repetitive way.
In case of questions, feel free to reach out.
Disclaimer: I am the owner of SlideFab 2.
Cheers
Jens

Enabling macros in chart data sources in Powerpoint

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.

Convert linked excel into embedded excel

I have a ppt presentation with hundreds of charts that are all linked to the same .xls file. I want to send the presentation to the client and I want him to be able to access the data. However, I do not want him to open the entire xls file when he clicks on edit data.
So what I would like to do is to "convert" the linked charts to charts with an embedded excel that only contains the data concerning the specific chart.
(I am not sure if that's the right way to put it. I feel like the distinction between embedded and linked is not as clear cut anymore as it used to be in previous office versions)
I have found a macro for ppt 2003 that simply copies the old chart and does
Set oSh2 = oSl.Shapes.PasteSpecial(ppPasteOLEObject)(1)
but I think this does now longer work ( I am working with ppt 2013).
Any ideas on how to do this are highly appreciated. Many thanks
If you don't want to give him access to the entire original workbook/worksheet, you'll need to create multiple worksheets, each with just the data you DO want him to be able to get at and then either link or embed those into your PPT file.
If you create the charts using the old MS Graph mini-app (still included, if optionally, with Office) you can link data from an external Excel file into the graph datasheet. I'm almost certain that doing it this way will give others access to the graph datasheet (ie JUST the data used for the graph) but not to the linked source XL file.
I don't see a way of doing this with the new chart engine.

update embedded excel pivot in powerpoint using VBA Code

I have some pivot tables in powerpoint that I embedded. I chose to embed rather than just regular linking as I need to update the pivot tables daily and need to shape them to give only the relevant information.(Sometimes there is more data than the day before which cannot be seen when linking normally as the"window" is fixed.)
I am still very new to the VBA coding field and require a code that will open my Microsoft excel worksheet opject then refresh the pivot inside the object and close it again. I have written code to open the document, save and close the document which is working correctly. I only require that little refresh bit.
Many thanks in advance

Cannot update embeded excel links in powerpoint to a different sheet

I have monthly report data in separate tabs, Jan to Dec.
I took the data from Jan and linked it to a powerpoint page in order to display it for briefings. I have the layout set exactly how I want it, so I copied the slide and then wanted to edit the new slide to use the data from Feb instead of Jan, however I can't seem to update the links so they use the other sheet. It just asks me to select a new file.
The links option allows me to select a new spreadsheet file but not the same file and different sheet. Is there anyway around this?
The data embedded in the ppt is both cell data & charts.
Hopefully, I've explained what I mean well enough.
Many thanks for any help and advice. =)
Your subject mentions links but later you say "The data embedded in the ppt ..."
Linked and embedded objects are two different things with different behaviors.
If you want different slides to point to different parts of your worksheet/workbook and to update at need, you'll want to do this for each slide:
Select the data in Excel
Copy it
Switch to PowerPoint, move to the slide where you want to display the data
Choose Paste Special, then choose to Link
You could, in theory, accomplish something similar by creating one link, then copying the slide and finally editing the link target, but that'd take either an add-in or some coding, and would in any case probably be more trouble than it'd be worth.
Create a tab in the file and name it "Current" or something to that effect.
Link it to the month tab you want, like Jan.
Create the link in powerpoint how ever you have already, to this tab and not the Jan tab.
you can change the links in the tab "Current" to point to a different tab, like Mar.
Update you powerpoint by either up dating links (for pastespecial as link ) or just double click the embedded object in powerpoint while the Excel file is already open

Resources