Automate PowerPoint Presentation using VBA. Excel PowerPoint Integration
VloĆŸit
- Äas pĆidĂĄn 24. 07. 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: czcams.com/users/vbaa2zplaylists
Videos: czcams.com/users/vbaa2zvideos
#VbaA2z - VÄda a technologie
Most practical and best VBA Programming Channel !!!
thank you so much!
Wow, thanks!
Feeling very grateful. Keep it up, thanks!
Thanks, will do!
Your videos are the most practical. thank you so very much!
You're very welcome!
Exactly what I needed, thanks for the great video!
You're welcome!
This is amazing. It's going to save a lot of time
Glad to hear. Let me know if you face issues.
Another great tutorial. Thanks Pamai
thanks!
Really useful video. Youâre the man!
I appreciate that!
Thank you again for this great tutorial.
Glad it was helpful!
This is extremely helpful - thanks!
You're welcome!
Learned amy more things everyday. Thanks for sharing your experience and knowledge freely
So nice of you
Bravo!!! your contents are mind blowing.
Thanks for sharing your knowledge to VBA lovers
So nice of you
Thank you for this video, it was very helpful.
Glad it was helpful!
What a brilliant idea! Thank you
You are so welcome!
Thank you so much. Your channel is a gem.
I binge-watched UI UX series :)
Glad you enjoy it!
Brilliant, never knew about this possibility.
thank you thank you
Happy to help
Learn many new things from your channel. You have a great knowledge base, thank you Pamai
Happy to hear that!
Love the video ! Subscribed !
Thanks for the sub!
Look forward to new contents from you. Thanks for your contribution to VBA community.
Much appreciated!
Thanks for this informative tutorial.
Glad it was helpful!
This is superb. No doubt best VBA channel
Thanks for watching!
Excellent solution and tool. Thank you for your efforts đđ
You are welcome!
Brilliantly put together my friend.
Thanks, appreciate that
amazing how you simply VBA automation. another great video. Thank you
Thanks again!
This is best tutorial i have come across in ppt automation! Keep it up đ
Wow, thanks!
Another amazing video. Thank you so much for teaching us
My pleasure!
Thank you sir for detailed walk-through and for another practical video.
most welcome
Best VBA channel. Thanks sir
So nice of you
Really loved all your videos. Keep it up!
Thanks a ton!
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.
czcams.com/play/PLo0aMPtFIFDocT-bLo37Fj_iwenKtUlKr.html
Thanks for this amazingly practical tutorial. Keep up great work
Thanks, will do!
@@VBAA2Z cheers!
Great work man! đ
Appreciate it!
Wow this is excellent! Thank you
You're very welcome!
This is excellent solution. Keep up great work.
Thank you! Cheers!
so many cool tut here!!! good work!
Glad you think so!
Very Very useful to me. Thanks a lot.
Glad it was helpful!
Amazed at your talent. keep up great work
Thank you so much!
very informative, thanks so much
Glad it was helpful!
This is perfect! Thank you very much
You're welcome đ
this is a great tutorial, thanks.
You're welcome!
very helpful and understandable thank you very much!
You're very welcome!
superb! will come back for more.... thank you thank you
So nice of you
this is amazing, thank you so much.
You're very welcome!
VBA A2Z - Awesome tutorial!! very deliberate, organized, and concise... I echo Mira's comment.
Much appreciated!
Thanks for excellent tutorials
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.
brilliant idea. thank you so much
Most welcome đ
this is wow. really great practical tutorial
thanks
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
another useful tutorial. keep it up!
Glad you think so!
Great value provided
Thanks Kenny!
this is brilliant, thank you
You're very welcome!
thanks for another practical video
You're welcome
Amazing. Thank you so much
You're very welcome!
Big thanks to Pamai
you're most welcome!
this is great, thank you sir
You are very welcome
Thansk for amazing tutorial
My pleasure đ
This is amazing. Thanks
Glad you like it!
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
Great work.
Thank you! Cheers!
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
'---------
thanks for the useful videos.
Glad you like them!
fantastic!
Thank you! Cheers!
superb, thank you soo much
you're most welcome!
thank youso much!!!!
You're welcome!
superb - thanks
Most welcome
It's Cool n Amazing
Glad you found it useful. Cheers!
Amazing tutorials
Thanks
Thank you Sir !
Most welcome!
Thank you and keep up the good work Sir
Thank you, I will
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
Excellent tutorial. Subscribed, Liked, Saved to Playlist and Notification turned-on... :-)
Awesome, thank you!
thank you so much
You're welcome!
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.
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
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
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
Ù Ű±ŰłÛ
thanks for visit.
great video
Glad you enjoyed it
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
You're welcome
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.
Hellow Pamai
A nice video like always. Would appreciate if you start a series for GDI/GDI+ using VBA
Thanks for your suggestion.
great
thanks!
Thanks
thanks for you support!
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
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.
czcams.com/video/s9HE5uIGYAI/video.html
đđ
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
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.
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.
czcams.com/play/PLo0aMPtFIFDocT-bLo37Fj_iwenKtUlKr.html
Good
thanks
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
czcams.com/video/s9HE5uIGYAI/video.html
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
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
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 đ€©
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 czcams.com/video/s9HE5uIGYAI/video.html
simply amazing. How do you come up with all these
Thank you! Cheers!
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 czcams.com/video/dIqoXYy_Clg/video.html
For each rng in Range("Rng_Sheets")
Next rng
Hello! Can the user interface be in the same document as de excel data source?
yes, of course.
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.