Macro permitir seleccionar y pegar varios rangos en PowerPoint

Estimados realice una pregunta pero no he tenido respuesta.

Busque el web y encontré esta macro que realiza lo que necesito, pero se debe haer algunas modificaciones y no se como hacerla, alguien me puede ayudar.

La idea es que me permita seleccionar varios rangos en distintas hojas de excel que preventivamente e diseñado con datos de varias tabla y están en rangos distintos en varias hojas, es el resultado de la tabla.

Esta se debe pagar en una presentación de power point vacía.

La macro que encontré pega los títulos y la imagen de los rangos, en este caso dos, pero necesito varios.

Sub cargar_excel_a_PowerPoint()
'Step 1: Declare your variables
Dim pp As PowerPoint.Application
Dim PPPres As PowerPoint.Presentation
Dim PPSlide As PowerPoint.Slide
Dim xlwksht As Excel.Worksheet
Dim MyRange As String
Dim MyTitle As String

'Step 2: Open PowerPoint, add a new presentation and make visible

Set pp = New PowerPoint.Application
Set PPPres = pp.Presentations.Add
pp.Visible = True

'Step 3: Set the ranges for your data and title
MyRange = "A3: I35"

'Step 4: Start the loop through each worksheet
For Each xlwksht In ActiveWorkbook.Worksheets
xlwksht.Select
Application.Wait (Now + TimeValue("0:00:1"))
MyTitle = xlwksht.Range("A1").Value

'Step 5: Copy the range as picture
xlwksht.Range(MyRange).CopyPicture _
Appearance:=xlScreen, Format:=xlPicture

'Step 6: Count slides and add new slide as next available slide number
SlideCount = PPPres.Slides.Count
Set PPSlide = PPPres.Slides.Add(SlideCount + 1, ppLayoutTitleOnly)
PPSlide.Select

'Step 7: Paste the picture and adjust its position
PPSlide.Shapes.Paste.Select
pp.ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
pp.ActiveWindow.Selection.ShapeRange.Top = 130

'Step 8: Add the title to the slide then move to next worksheet
PPSlide.Shapes.Title.TextFrame.TextRange.Text = MyTitle
Next xlwksht

'Step 9: Memory Cleanup
pp.Activate
Set PPSlide = Nothing
Set PPPres = Nothing
Set pp = Nothing

End Sub

Añade tu respuesta

Haz clic para o