Dear community,
I am very new to VBA, and my request might be basic but I struggled to find clear instruction on how to do it...
I am building a macro that creates a Powerpoint presentation for each slicer selction (slicer is connected to multiple tables and views). Only 1 slicer where I have to select 1 brand at the time, and it will create the presentation and save it with the selected brand name.
I have a listbox where you hve to doubleclick the brand, but how do I connect this box selection to my slicer?
Private Sub DivisionName_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
The rest of the macro is ready...
Sub CreatePowerPoint()
Dim myPresentation As PowerPoint.Presentation
Dim TemplateLocation As String
Dim PowerPointApp As PowerPoint.Application
Dim activeSlide As PowerPoint.Slide
Dim cht As Excel.ChartObject
'Opens Template PowerPoint
Set PowerPointApp = CreateObject("PowerPoint.Application")
TemplateLoaction = "C:\Users\kslavulj\Desktop\POWERPOINT Automation\Template\EMEA SIOP Template.pptx"
PowerPointApp.Presentations.Open (TemplateLoaction)
.................
Let me know if you need any further information
Thanks
Krisla
I am very new to VBA, and my request might be basic but I struggled to find clear instruction on how to do it...
I am building a macro that creates a Powerpoint presentation for each slicer selction (slicer is connected to multiple tables and views). Only 1 slicer where I have to select 1 brand at the time, and it will create the presentation and save it with the selected brand name.
I have a listbox where you hve to doubleclick the brand, but how do I connect this box selection to my slicer?
Private Sub DivisionName_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
The rest of the macro is ready...
Sub CreatePowerPoint()
Dim myPresentation As PowerPoint.Presentation
Dim TemplateLocation As String
Dim PowerPointApp As PowerPoint.Application
Dim activeSlide As PowerPoint.Slide
Dim cht As Excel.ChartObject
'Opens Template PowerPoint
Set PowerPointApp = CreateObject("PowerPoint.Application")
TemplateLoaction = "C:\Users\kslavulj\Desktop\POWERPOINT Automation\Template\EMEA SIOP Template.pptx"
PowerPointApp.Presentations.Open (TemplateLoaction)
.................
Let me know if you need any further information
Thanks
Krisla