Embedding Excel Workbook into Powerpoint

mkmiller

New Member
Joined
Dec 14, 2011
Messages
7
Hi,

I am trying to embed a very large excel workbook into powerpoint. I want to create a template that I can dump a data output into 3 seperate data tabs and have 100+ graphs populate throughout the powerpoint. I currently have this model built in a workbook and have all the graphs in a powerpoint file linked to the excel workbook. So as I update the data the graphs will adjust if I update the links in the powerpoint. Because I cannot change the file names of the either the powerpoint or the excel file I have to do to break the links and save the powerpoint as a different name. This works fine, until I have to make updates to the data, then I have to load the data into the excel template and update the links on the powerpoint template and then make any changes I have made to the powerpoint all over again. If there is a way to embed the workbook into the powerpoint and have the graphs on separate slides point to the data embedded this would be ideal. Does any one know of a way to do this? Any help would be appreciated!!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi MKMiller,

Did you every find a solution to your question? Am in exactly the same predicament, so any advice you might have would be MUCH appreciated.

Thanks!
 
Upvote 0
What ever happened to Copying the data and/or chart and going to PPT and hitting Paste Special, Paste Link?

It's been around for years and years.

Also, there is an option to update links...
 
Upvote 0
Precisely what I've done, only problem happens when you want to save different versions of the same set. Basically I've got a template of each but I need to be able to redirect the links in ppt to pull figures from another workbook. All the charts and tables have been set up so there aren't any ordering or layout changes, just updating the figures.

Any ideas on how to create separate versions that link to different workbooks?
 
Upvote 0
Won't that mean having to edit each and every link? Is there a script or macro I could use to automate this? I'm sitting with close to 300 charts and have to make 5 versions....
 
Upvote 0
I gotta test and can't do it from work right now.
I'll be home in a few hours.
 
Upvote 0
Well, okay, then.

Open your presentation.
Hit Alt+F11.
At the top of the screen hit Insert, then Module.

Paste the following code into the code window at right:

Code:
Sub UpdateLinks() 
    Dim ExcelFile 
    Dim exl As Object 
    Set exl = CreateObject("Excel.Application") 
     
     'Open a dialog box to promt for the new source file.
    ExcelFile = exl.Application.GetOpenFilename(, , "Select Excel File") 
     
    Dim i As Integer 
    Dim k As Integer 
     
     'Go through every slide
    For i = 1 To ActivePresentation.Slides.Count 
        With ActivePresentation.Slides(i) 
             'Go through every shape on every slide
            For k = 1 To .Shapes.Count 
                Turn of error checking s that it doesn 't crash if the current shape doesn't already have a link
                On Error Resume Next 
                 'Set the source to be the same as teh file chosen in the opening dialog box
                .Shapes(k).LinkFormat.SourceFullName = ExcelFile 
                If .Shapes(k).LinkFormat.SourceFullName = ExcelFile Then 
                     'If the change was successful then also set it to update automatically
                    .Shapes(k).LinkFormat.AutoUpdate = ppUpdateOptionAutomatic 'other option is ppUpdateOptionManual
                End If 
                On Error Goto 0 
            Next k 
        End With 
    Next i 
     
End Sub


Click anywhere in the code and hit the Run button from the top of the screen. It's gonna bring up the link dialog. You're gonna choose the file, and it's gonna change ALL the links.

To check it, in 2010, you hit File, and all the way down bottom-right, you will see Edit links. It is really stupid that you can't edit them all at once. Used to able to do that in Word.

Problem: I wouldn't want to save the code in the PPT. So keep a copy of the code in a Notepad txt file and do what I just said when you wanna run it.

If you need a screen-shared walkthrough, I can do that with ya. :)
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top