Exporting Multiple Excel Charts To PowerPoint Using VBA

This video will go over how to write a VBA script that will take all the charts on a single Excel Worksheet & all the charts across an entire Excel Workbook and export them to a PowerPoint Presentation that we create.
Video Resources:
--------------------------------------------------
Resource: GitHub File
Link: github.com/areed1192/sigma_coding_youtube/tree/master/vba/vba-powerpoint/Excel%20to%20PowerPoint%20-%20Charts.bas
Resources:
--------------------------------------------------
Facebook Page: codingsigma
Facebook Group: groups/sigmacoding
GitHub Sigma Coding: github.com/areed1192/sigma_coding_youtube
Support Sigma Coding:
--------------------------------------------------
Patreon: patreon.com/sigmacoding
Amazon Associates: amzn.to/3bsTI5P **
Related Topics:
--------------------------------------------------
Title: Exporting Multiple Excel Charts To PowerPoint Using VBA
Link: kzread.info/dash/bejne/doOVpNaSfaapdbA.html
Title: Exporting A Chart From Excel To PowerPoint Using VBA
Link: kzread.info/dash/bejne/m62rmJZ8dLTTabw.html
Title: Exporting Multiple Excel Ranges From Excel To PowerPoint Using VBA
Link: kzread.info/dash/bejne/oX9h0runotDbaaw.html
Title: Exporting An Excel Range From Excel To PowerPoint Using VBA
Link: kzread.info/dash/bejne/pmqBm6dulbDTiLg.html
Title: Manipulating Shapes In PowerPoint Using VBA
Link: kzread.info/dash/bejne/hq2OlpmqeZO0m7Q.html
Title: Exporting An Excel Table From Excel To PowerPoint Using VBA
Link: kzread.info/dash/bejne/kX-pt5qpdM-4l84.html
Title: Exporting Multiple Excel Tables From Excel To PowerPoint Using VBA
Link: kzread.info/dash/bejne/lXqVzalyh9Ccf7A.html
Title: Pasting Excel Objects Into PowerPoint Using VBA
Link: kzread.info/dash/bejne/laSrqq5rZrHemMY.html
Title: How To Paste Multiple Objects To A Slide in VBA
Link: kzread.info/dash/bejne/enuVxJqLkrDLn5M.html
**Amazon Associates Disclosure:
--------------------------------------------------
I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. One of the ways I support the channel is by using Amazon Associates to earn fees on purchases you make. That means when you use the link above, it will track any purchases made from that link and give a small portion of it to the Sigma Coding. I love this approach because it allows you to do what you're already doing (shopping) but also helps support the channels you care about. Also, it makes it where I can invest that revenue to help improve and grow the channel.
Tags:
--------------------------------------------------
#PowerPoint #VBA #ExcelCharts

Пікірлер: 54

  • @garyb3455
    @garyb34552 жыл бұрын

    Just come across your channel after searching for info about Exporting Charts to PowerPoint. Oh man, I couldn't thank you more. These tutorials are what I was l looking for about a week now. Just subscribed and liked. I could have pressed the thumbs up if there was one. Cheers!!!

  • @mr.gk5
    @mr.gk55 ай бұрын

    This is beautiful! Thank you for contributing to this world's productivity

  • @mashitaf_
    @mashitaf_4 жыл бұрын

    Thank you so much for this video!!! It's easy to understand your explanation in each change you made on the script. I'm gonna use the script to automate my monthly reports. Again, thanks! :D

  • @bijoysaraf650
    @bijoysaraf6504 жыл бұрын

    Outstanding presentation of automation! Your teaching skills are super clear, succinct and easy to follow. Reminds me of a great teacher-- Richard Feynman. Way to go! Liked & subscribed

  • @SigmaCoding

    @SigmaCoding

    4 жыл бұрын

    Well thank you for that, I've always had a passion for teaching so it's good to see when people find it valuable!

  • @tamaraavila1958
    @tamaraavila19583 жыл бұрын

    Super helpful video, thanks!

  • @sid5dharth
    @sid5dharth6 күн бұрын

    This is really helpful. Could you please explain how to define 1st chart as "Chart1" to use ChartObjects("Chart1") call?

  • @pescaosalao
    @pescaosalao6 ай бұрын

    Thanks you, excelent presentation, have a happy new year!👍

  • @meenakshisundaramthambusam7499
    @meenakshisundaramthambusam7499 Жыл бұрын

    Nice one, could you please help me how to add 3 excel charts is a single PPT slide

  • @toullierclaudio
    @toullierclaudio3 жыл бұрын

    Great code man, thanks!

  • @SigmaCoding

    @SigmaCoding

    3 жыл бұрын

    Happy to help

  • @hooditoman4540
    @hooditoman45402 жыл бұрын

    Great video

  • @manuelreveles3344
    @manuelreveles33443 жыл бұрын

    This video is AMAZING. One question tough; is there anyway you could insert a Chart into an existing slide with headers and text in a PPT that already has been created?

  • @SA-cb5mt
    @SA-cb5mt3 жыл бұрын

    Hi, thank you so much. Amazing video. Do you have a video for also automating titles to go into each slide that is created? or maybe using a specific PowerPoint template that already has headers?

  • @SigmaCoding

    @SigmaCoding

    3 жыл бұрын

    I'm going to be releasing a video soon where I'll be showing you how to build a presentation using Excel Objects.

  • @thyne_
    @thyne_2 жыл бұрын

    Ótimo vídeo, me ajudo muito, só gostaria de saber, o que tenho que mudar no código para que ele cole vários gráficos no mesmo slide?

  • @gainescarter553
    @gainescarter5533 жыл бұрын

    great video! How can I add a title box to each PowerPoint slide?

  • @darrenconnor2294
    @darrenconnor22943 жыл бұрын

    hi great presentation but as soon as I tried it, I get the same error as Yuda Pratama "Dim PPTApp As PowerPoint.Application" User defined-type not defined" when I looked up what this error means - it says I have to define the data types in Type / End Type statement - but doesn't show an example of how to do this

  • @shaamyy
    @shaamyy2 жыл бұрын

    Thank you very much, I have a question: In my workbook I have multiple charts each in a separate sheet, so multiple sheets and in each of them is one chart, I am guessing I will need to loop through sheets, and copy past charts from them to PPT. Can you help with the code syntax?

  • @ashleychatterton6190
    @ashleychatterton61904 жыл бұрын

    Great video! How do you set the chart to a specific position in PowerPoint and resize it so it fits the slide?

  • @SigmaCoding

    @SigmaCoding

    4 жыл бұрын

    I have a video about manipulating shapes in PowerPoint using VBA. Here is the link: kzread.info/dash/bejne/hq2OlpmqeZO0m7Q.html

  • @ivanfomin4070
    @ivanfomin40704 жыл бұрын

    Hello sir, thank you very much for the tutorial. I am getting 1004 errors, object-defined or application-defined errors at the Chrt.Copy line, but only for some sheets and I can't figure out the reason

  • @mikesunderland9145
    @mikesunderland91454 жыл бұрын

    I would like to be able to copy charts and tables from Excel into an existing PPT Slide Master. Your instructions work great for a new presentation, but I need them to go into an existing PowerPoint presentation. Any ideas?

  • @fran123456

    @fran123456

    4 жыл бұрын

    You can make links to the charts, but not to other excel objects. That's why I was looking for a way of mirroring charts and objects to the slides (same as the video but with multiple charts and objects that would keep the same position than in the original excel tab). You can do this very easily exporting pdfs but it's impossible to get rid of a white frame around the resulting document..

  • @jack4073
    @jack40734 жыл бұрын

    what should be done, if we are planning to paste the the two chartobjects from the active sheet on same slide but on different positions?

  • @SigmaCoding

    @SigmaCoding

    4 жыл бұрын

    I have a video that covers that topic. Here is the link: kzread.info/dash/bejne/enuVxJqLkrDLn5M.html

  • @user-fz3wg7mr3m
    @user-fz3wg7mr3m4 жыл бұрын

    thank you

  • @SigmaCoding

    @SigmaCoding

    4 жыл бұрын

    :)

  • @d1g1T4Lnrg
    @d1g1T4Lnrg Жыл бұрын

    So can you specify which powerpoint template that the charts will be placed into? Also, I have many charts on the same WS and many WS in the WB. For some reason the multiple charts in the workbook fails on my workbook, unless its a WB that is very uncomplicated. most of these charts are pivot charts as well.

  • @mlhess
    @mlhess3 жыл бұрын

    When I tried to run the second routine, it stopped after one chart. Is there a difference when the chart itself is a sheet (such as after moving a chart to its own sheet), rather than the chart being on a sheet?

  • @kristinapaseru2518
    @kristinapaseru25183 жыл бұрын

    Hello, Firstly, thank you for sharing this. I tried to run your query but I have a problem, it said : Shapes(unknown member) : invalid request. Clipboard is empty or contains data which may not be pasted here. I tried to figure out the solution but have not found yet. Could you help me to explain why it occured? Thank you

  • @petizati89
    @petizati893 жыл бұрын

    can anyone help me please, how to copy from a Chart-Sheet te picture/chart to powerpoint ? When I used the code form the video it take the chats just from "normal" worksheets not from chartsheets

  • @hello123457154
    @hello1234571545 жыл бұрын

    Hello. Love the videos. I just wanted to ask, how would you go about exporting both the data table and the charts onto the same powerpoint slides

  • @SigmaCoding

    @SigmaCoding

    5 жыл бұрын

    I actually have a video that covers this topic, it can be found here: kzread.info/dash/bejne/enuVxJqLkrDLn5M.html

  • @romeo72899
    @romeo72899 Жыл бұрын

    How can we refer to an exact chart from Excel to copy in PPT. Is there any unique identifier that can be used for this copy paste operation??

  • @ganeshs1360
    @ganeshs13603 ай бұрын

    is there a way to paste the chart as embedded chart into the slide?

  • @yudapratama6384
    @yudapratama63844 жыл бұрын

    I have an error during compile,at "Dim PPTApp As PowerPoint.Application" User defined-type not defined

  • @maxined1394

    @maxined1394

    4 жыл бұрын

    i have it too ( Sub ExportChartToPowerPoint_PasteMethods() undefined by the user)

  • @Humtum328
    @Humtum3284 жыл бұрын

    Hi, I am struggling same action in python, do you have any reference ?

  • @SigmaCoding

    @SigmaCoding

    4 жыл бұрын

    What are you struggling with?

  • @YouTubin304
    @YouTubin3044 жыл бұрын

    Hello, I get a runtime error 445 - 'object doesn't support this action'. I'm using a Pareto Chart (Histogram). The code works for a standard 2-D Column chart.

  • @SigmaCoding

    @SigmaCoding

    4 жыл бұрын

    Hey John, Unfortunately, the VBA model was not extended for new chart objects so some functionality may not work with all of the them. For example, I believe charts like Tree Maps can only be pasted as pictures.

  • @YouTubin304

    @YouTubin304

    4 жыл бұрын

    Sigma Coding thanks for the quick reply! Perhaps a workaround will be developed at a later time. Also, keep up the good work! This was a very useful tutorial.

  • @rfrost8551
    @rfrost85514 жыл бұрын

    VBA is for super users they said.... I’d like to automate a frequent reporting pack that contains around 120 slides with approx 100 charts and tables from a number of excel sources. It’s a nightmare. I started this new role 2 months ago and it’s essential that I find a solution to automate this process so I don’t waste my life copying and pasting charts. I’m even exploring UI path’s RPA solution but would prefer VBA so it can be adopted by my successors. The main challenge is that I receive different files each month by email. On the plus side, the document (excel) format and layout is consistent.I store them in monthly folders (until I get SharePoint libraries set up) The files are consistent (same template used each month), so the chart and ranges are the same. Any advice would be awesome!

  • @SigmaCoding

    @SigmaCoding

    4 жыл бұрын

    Well the fact that all the files are laid out consistently is probably the biggest hurdle to overcome. If I were in your situation I would try to do the following: 1. Have all the files in one place (it sounds like this has already been accomplished). 2. Have a VBA script that loops through each file in that folder, opens it up and gets ready to copy it. 3. Open up the PowerPoint presentation (I'm assuming you're using a template). 4. The tricky part is copying and pasting the charts. Right now, what's the logic for putting which charts where? 5. Maybe have a "master" list, where you have each workbook, the worksheet the object lives on, the object id itself, and which slide that object is intended to go. 6. Use that table as your basis for determining where things go. I did something like this many years ago, and I still have the code if you'd like to see it. Not sure if it'll work in your exact case but hopefully give you a base to work off. If you want it just email me at coding.sigma@gmail.com Also, if you have the code that you're planning to use I'd be happy to take a look at it.

  • @rfrost8551

    @rfrost8551

    4 жыл бұрын

    @@SigmaCoding Thanks for the quick reply. Excellent, will drop you an email.

  • @harsh3618
    @harsh3618 Жыл бұрын

    How to add two charts in one slide

  • @vickimoore7619
    @vickimoore76193 жыл бұрын

    Help With Error I am getting a "Compile Error: User-defined type not defined - can someone tell me how to fix this error?

  • @SigmaCoding

    @SigmaCoding

    3 жыл бұрын

    Did you import the PowerPoint Reference Library? Usually that causes the issue.

  • @vickimoore7619

    @vickimoore7619

    3 жыл бұрын

    Thank you, that was the issue - I was seeing Microsoft Office and wasn’t paying attention that it wasn’t Power Point.

  • @sajuts5635
    @sajuts56354 жыл бұрын

    Hi how to add charts to the different slides of existing ppt..plz help

  • @SigmaCoding

    @SigmaCoding

    4 жыл бұрын

    If you go in the description, there are link to other videos that cover that topic.

  • @sajuts5635

    @sajuts5635

    4 жыл бұрын

    @@SigmaCoding could you plz give me the exact link that i needed...plz

  • @sajuts5635

    @sajuts5635

    4 жыл бұрын

    @@SigmaCoding i have one doubt, i have existing ppt containing graph in slides, so when i execute the macro it should delete the existing graphs in slide and should update latest one, why am asking this is because i need to update the graphs based on latest data. Thanks in advance...