Automate PowerPoint Presentation using VBA. Excel PowerPoint Integration
HTML-код
- Опубликовано: 21 июл 2024
- Automate PowerPoint Presentation using VBA. Excel PowerPoint Integration
Subscribe, Like, and Comment. 🙏Thanks for watching.
You can now support by buying any of the Projects or Source Code.
📥Downloads: pamaitech.com/downloads/
👍 Support: paypal.me/pamaitech
✉️ Contact: contact@pamaitech.com
📌What to watch next:
Playlist: ruclips.net/user/vbaa2zplaylists
Videos: ruclips.net/user/vbaa2zvideos
#VbaA2z Наука
Most practical and best VBA Programming Channel !!!
thank you so much!
Wow, thanks!
Look forward to new contents from you. Thanks for your contribution to VBA community.
Much appreciated!
Bravo!!! your contents are mind blowing.
Thanks for sharing your knowledge to VBA lovers
So nice of you
Learned amy more things everyday. Thanks for sharing your experience and knowledge freely
So nice of you
Interested to become VBA Pro? Here is 100% free guided e-course with Real-life projects.
Sign-up to participate, get assignments and a certificate:-
Sing up link = > bit.ly/3eX8tzl
Learn many new things from your channel. You have a great knowledge base, thank you Pamai
Happy to hear that!
Your videos are the most practical. thank you so very much!
You're very welcome!
Thank you so much. Your channel is a gem.
I binge-watched UI UX series :)
Glad you enjoy it!
This tutorial has just changed my life. Thank you so much @VBA A2Z. Please can you advise on how to export charts/ data from multiple excel workbooks into the same powerpoint slide.
Glad to know you found this video helpful. You can expand the mapping table / rng_sheets to include path for other files too and on runtime open the files and get data from it. The below series covers all important topics on VBA Programming including working with objects in lesson-1. Feel free to email me if you need more help.
ruclips.net/p/PLo0aMPtFIFDocT-bLo37Fj_iwenKtUlKr
This is superb. No doubt best VBA channel
Thanks for watching!
VBA A2Z - Awesome tutorial!! very deliberate, organized, and concise... I echo Mira's comment.
Much appreciated!
This is amazing. It's going to save a lot of time
Glad to hear. Let me know if you face issues.
Thank you sir for detailed walk-through and for another practical video.
most welcome
Project Uploaded. Download and have fun. Cheers!
the Projekt not longer available, i get "Sorry, the page you were looking for in this blog does not exist." from the link in the description
Best VBA channel. Thanks sir
So nice of you
This is best tutorial i have come across in ppt automation! Keep it up 👍
Wow, thanks!
amazing how you simply VBA automation. another great video. Thank you
Thanks again!
Feeling very grateful. Keep it up, thanks!
Thanks, will do!
Really useful video. You’re the man!
I appreciate that!
Exactly what I needed, thanks for the great video!
You're welcome!
Excellent solution and tool. Thank you for your efforts 😀👍
You are welcome!
Thanks for the excellent video on VBA. I am quite new to it, but I could automate a PPT creation from excel using this code. One small think that I want to add is Header to each slide. I have added 'Header' as a column in the reference table of excel where we have Range and position details (as each slide will have different header). And have declared it as a variable too. But unable to call the same. Could you please help me on this.
Another amazing video. Thank you so much for teaching us
My pleasure!
Thank you for this video, it was very helpful.
Glad it was helpful!
Thank you again for this great tutorial.
Glad it was helpful!
superb! will come back for more.... thank you thank you
So nice of you
Hello , the video is really useful. Thank you very much.
There is an issue that the position and size of an exported chart will not be respected as what I have defined in the admin sheet if I export more than 1 chart in a slide or if texts have been there in the ppt template ( before exporting charts).
Do you have any idea to solve this issue please ?
Thank you very much
This is extremely helpful - thanks!
You're welcome!
This is excellent solution. Keep up great work.
Thank you! Cheers!
Thanks for this informative tutorial.
Glad it was helpful!
Another great tutorial. Thanks Pamai
thanks!
Brilliant, never knew about this possibility.
thank you thank you
Happy to help
What a brilliant idea! Thank you
You are so welcome!
This is excellent sir. You're the best!
Requesting you to create video on how to create add-in for PowerPoint. Thanks for considering
thanks. Will upload soon
Thanks for this amazingly practical tutorial. Keep up great work
Thanks, will do!
@@VBAA2Z cheers!
Brilliantly put together my friend.
Thanks, appreciate that
Very Very useful to me. Thanks a lot.
Glad it was helpful!
Amazed at your talent. keep up great work
Thank you so much!
this is wow. really great practical tutorial
thanks
Hello,
Thanks for the great tutorial. Could you please help me with pasting the excel range as an editable table while retaining the source formatting ? I have tried ppPasteHTML but it's not working.
Thanks in advance for the help.
Thanks for excellent tutorials
You are welcome!
This is perfect! Thank you very much
You're welcome 😊
very informative, thanks so much
Glad it was helpful!
very helpful and understandable thank you very much!
You're very welcome!
Thansk for amazing tutorial
My pleasure 😊
Excellent tutorial. Subscribed, Liked, Saved to Playlist and Notification turned-on... :-)
Awesome, thank you!
thanks for another practical video
You're welcome
Great value provided
Thanks Kenny!
Really loved all your videos. Keep it up!
Thanks a ton!
Big thanks to Pamai
you're most welcome!
so many cool tut here!!! good work!
Glad you think so!
Love the video ! Subscribed !
Thanks for the sub!
Wow this is excellent! Thank you
You're very welcome!
another useful tutorial. keep it up!
Glad you think so!
this is great, thank you sir
You are very welcome
brilliant idea. thank you so much
Most welcome 😊
superb, thank you soo much
you're most welcome!
this is amazing, thank you so much.
You're very welcome!
this is a great tutorial, thanks.
You're welcome!
Great tutorial!
I have a question, I would prefer to copy and paste the chart itself (even if the paste would be as an image) instead of a range containing a chart. I have tried to change the code part where we define the expRng (see below) but with no success.. Any advice?
Set expRng = Sheets(vSheet$).ChartObjects(vRange$).Select
expRng.ActiveChart.ChartArea.Copy
try below samples
'---------
ActiveSheet.ChartObjects("Chart 1").CopyPicture xlScreen, xlPicture
'---------
ActiveSheet.ChartObjects("Chart 1").Chart.ChartArea.Copy
'---------
Dim Chartobj As Chart
Set Chartobj = ActiveSheet.ChartObjects("Chart 1").Chart
Chartobj.ChartArea.Copy
'---------
How do i change the code to support older excel versions. The tools/reference link to powerpoint object 16 isnt available in excel, only the new office 365. Therefore on my other personal laptop i get an error which i trace back to tools reference: MISSING powerpoint object 16. I untick and change it to 15 but then the code doesnt work.
superb - thanks
Most welcome
Great work man! 👍
Appreciate it!
this is brilliant, thank you
You're very welcome!
Thank you and keep up the good work Sir
Thank you, I will
Great work.
Thank you! Cheers!
Thank you very much for this awesome tutorial.
I suggest using this to disable the message of updating links
With Application
.DisplayAlerts = False: .AskToUpdateLinks = False
End With
Thanks Yasser! we should be able to set this in host object as well.
Amazing. Thank you so much
You're very welcome!
Amazing tutorials
Thanks
thanks for the useful videos.
Glad you like them!
This is amazing. Thanks
Glad you like it!
Thanks for the excellent tutorial and for sharing the files. I would like to know (1) if i have two ranges in a sheet, how can i add those charts in 1 slide (2) how can i position those 2 charts in 1 slide . thank you.
try something like this.
wb.Activate
Sheets(vSheet$).Activate
Set expRng = Sheets(vSheet$).Range(vRange$)
expRng.Copy
Set slde = pre.Slides(vSlide_No)
slde.Shapes.PasteSpecial ppPasteBitmap
Set shp = slde.Shapes(1)
With shp
.Top = vTop
.Left = vLeft
.Width = vWidth
.Height = vHeight
End With
'------------------------------------------------example for 2
nd range. Replicate it like this.
Set expRng_2 = Sheets(vSheet$).Range("A2:A10")
expRng_2.Copy
slde.Shapes.PasteSpecial ppPasteBitmap
Set shp = slde.Shapes(2)
With shp
.Top = vTop
.Left = vLeft
.Width = vWidth
.Height = vHeight
End With
This is great code that has the potential for saving me a lot of time! Thank you. One issue I'm having is switching from paste bitmap to paste default. I need to maintain the table format within powerpoint so I am using paste default. However when I use Pastedefault, the code does not reposition based on the parameters set. It simply will just paste into the powerpoint. When I switch to paste bitmap or paste enhanced metafile it works again. Any suggestions? Also how do I use this code to paste charts as the actual chart object and not a bitmap? Your help is greatly appreciated.
You're welcome Jeay. Please try and post this in Stackoverflow, it is possible others also experience same issue
It's Cool n Amazing
Glad you found it useful. Cheers!
fantastic!
Thank you! Cheers!
Hi. If the ppt template already open, can teach me what to add so that the same ppt wont be open again and will paste to already opened ppt? Hope you can help.
Thanks, amazing!
I was wondering if there is any way to connect an Excel sheet, lets say employee info list (one employee per row) , with PPT and make it so that each row turns converts into a separate PPT slide, for each employee, presenting all the data in a way that we can move the cell input in the slide so it looks nice and tidy? Is there a way to automatize this so I dont have to go row by row?
Cheers :)
If you can fit all your data and charts etc. into Single Cell then of course. The app will export cell / range as snapshot to PPT.
Thank you Sir !
Most welcome!
Great video! Thank you.
Instead of working with ranges, is there a way to have the macro loop through Chart Names
Sheet Chart Name Width Height Top Left Slide #
IDR Charts ET1NLongTerm 5
IDR Charts ET1RLongTerm 6
I managed to get it to work with:
ActiveSheet.Shapes("ET1NetworkLongTerm").CopyPicture instead of
Set expRng = Sheets(vSheet$).Range(vRange$) '
expRng.Copy
but I can't figure out how to have the chart name dynamic. Any help would be greatly appreciated! Thank you.
Sure, you can loop through charts like this
Dim c As Chart
For Each c In Application.Charts
Debug.Print c.Parent.Name & vbCrLf & c.Name
Next c
Hellow Pamai
A nice video like always. Would appreciate if you start a series for GDI/GDI+ using VBA
Thanks for your suggestion.
thank youso much!!!!
You're welcome!
thank you so much
You're welcome!
مرسی
thanks for visit.
great video
Glad you enjoyed it
Hi thanks for the video! How can I get the ranges to paste and resize all on the same slide? It works great putting each range on its own slide but I really need them all on one.
I haven't tried this myself. If the same is to be replicated, why not just make a copy of slides instead and change the Title using VBA
Hello VBA A2Z, I really need your help. I should copy and past data from a powerpoint presentation to another. I should do it evety week and It takes me many days to do it manually. How can I do it automatically please? the format of both presentations doesnt change
thank you in advance for your return
Will it overwrite any pre-existing information in the "placeholders" or will it be copied on top of existing?
Example. I have a standard PowerPoint template with headers and various text that should always be intact. Will those dissapear or be kept?
If you want to write to the specific shape or text box you can refer to it using a name and not index. Below is latest on PowerPoint automation. Please let me know if you're stuck happy to assist.
ruclips.net/video/s9HE5uIGYAI/видео.html
Very helpful video 👍 What if the ranges are on the same workbook where you run the code?
Glad to know you found this video helpful. You can expand the mapping table / rng_sheets to include path for other files too and on runtime open the files and get data from it. The below series covers all important topics on VBA Programming including working with objects in lesson-1. Feel free to email me if you need more help.
ruclips.net/p/PLo0aMPtFIFDocT-bLo37Fj_iwenKtUlKr
This is great thank you so much!
Is there a way to export a range of slides in a subfolder from excel?
Yes you can export as images or as a different PPT file. Please refer to below link
ruclips.net/video/s9HE5uIGYAI/видео.html
Thanks for the descriptive video, I tried doing it, however, getting Run time and compile error when trying to run the get position and get from PPT macro. Please guide.
have you referenced to PPT lib?
Hi. Great videos!! I went through the steps and it all worked!! Is where anyway to paste the shapes in PNG instead of Bitmap?
Refer to line slde.Shapes.PasteSpecial ppPasteBitmap
Most welcome. Not at my desk at the moment, you should see the options in .PasteSpecial
Hi, what if you have already existing shapes in the ppt template? how do you get around this with the set shp line?
check out this full tut on PPT ruclips.net/video/s9HE5uIGYAI/видео.html
thank you
You're welcome
Thank you for a great tutorial! However, I receive "compile error: Next without For" when running the macro and where it is supposed to go to Next rng. Any suggestions on how to overcome this compile error? thanks
please recheck ruclips.net/video/dIqoXYy_Clg/видео.html
For each rng in Range("Rng_Sheets")
Next rng
Thank you for this unique tutorial! Can I do something like this but export by MS access instead of excel?
Yes you can. set reference to PPT Library as demo in this video and read data from Access table.
@@VBAA2Z Wow! thank you 🤩
Sir i am updating sharepoint list through vba, i want to know how many rows i can update through vba into sharepoint list, is there a limit and how many rows i can store into sharepoint list
I am stuck at get position code, the code give "class not registered
Hi, this may be a stupid question, but where can I find the sample code/workbooks? This was a great tutorial, btw! Thank you for making it!
Thanks. Please check the video description
great
thanks!
Thanks
thanks for you support!