VBA tool to create powerpoint slide from excel? - excel

Currently I have develop an excel sheet to extract data.
The output sheet (text + graph) should be exported to a PowerPoint slide.
Is there a way to do this with the help of a macro?
This is how it currently looks like. Ideally, I would add a button 'create slide', which triggers a macro to create a slide with this layout.
Any ideas?
Thanks!

Related

VBA code to transfer data from excel to powerpoint

Is there any VBA code that can be used to transfer data from the excel sheet onto the powerpoint? Currently, I have some data which has been used to generate a chart in excel and this chart is transferred from the excel to a powerpoint using VBA code.The macro is in the excel workbook. However, I would like to transfer the percentage profit from the excel cell over to the powerpoint either as a text or image as shown in the ppt below using VBA (since it is comparing the profit against the latest week[week 16], it should capture the value inside the cell G7). Is there any VBA code available for that? Are there any ways to proceed with this?
Data in excel sheet
Data I want to transfer to the powerpoint

Extracting certain Powerpoint slides based on an Excel table and combine to new presentation

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!

referring to an embedded excel worksheet in powerpoint

I searched in the net and found some similar cases, but they couldn't help me much.
I have an embeded Excel Worksheet in Powerpoint. I want to automatically save the Powerpoint Presentation as a PDF file, using a button.The name of the PDF file should include a number from a particular cell in the Excel Worksheet. I added a button (on the menu taskbar) with a macro, that automaticaly saves the Powerpoint as a PDF. Do you know, how can I refer to the cell in the Excel Worksheet in order to use it for the name of the PDF?
Many thanks for your help in advance!
this gets the first cell in first table in first slide
Debug.Print Application.ActivePresentation.Slides(1).Shapes(1).Table.Cell(1, 1).Shape.TextFrame.TextRange.Text

Excel: How do I view the source data of a graph from excel in word?

I wanted to paste the graph from excel in word such that it is possible for me to view the source data of the graph.
What I did is to copy the graph from excel and paste it as link in word. I have two or more graph in the excel file (located in the same sheet). When I double click the graph in word it would take me to sheet of where the graph is located but not actually the graph.
What shall I do in order to be able to achieve what I want? That is when I click on the graph it would take me to its source?
So, if you have got your Chart created in let's say a workbook saved at C:\temp\foo.xlsx, now you copy and paste the chart in Word.
Using VBA in Word
Example
Sub ShowChartData()
With ActiveDocument.InlineShapes(1).Chart.ChartData
.ActivateChartDataWindow
End With
End Sub
Without VBA.
To view the data, make sure the Workbook is not open, then just Right Click the chart and click Edit data, Word will launch your workbook foo.xlss and select the exact range containing the chart data.

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.

Resources