VBA to paste range cells into a ppt (all set) and fit to exact width of page (need help)

I have a vba script created to change pulldown selections in an xls sheet, that drive data in a range of cells.  I need to cycle thru around 100 options and copy paste the results of the range of cells onto a new ppt page, for a report out.

I have the vb. script working great, just need help in one area, I need the range of cells being copied to paste into the ppt and stretch/shrink to match the exact width of the ppt page.  The size of the paste is very close to the width (just a little larger) so I'm not too concerned about maintaining aspect ratio (that's a nice to have) but definitely need to shrink each to fit.   I've attached portion of  my code below so you can see how it is working


 'Set osl = PowerPointApp.ActivePresentation.Slides.Add ActivePresentation.Slides.Count + 1, ppLayoutTitleOnly
            'Add a slide to the Presentation
            Set mySlide = myPresentation.Slides.Add(1, ppLayoutTitleOnly)
            mySlide.Shapes.Title.TextFrame.TextRange.Text = ppt_pg_ttl
            'Copy Excel Range
            rng.Copy

            'Paste to PowerPoint and position
            mySlide.Shapes.PasteSpecial DataType:=ppPasteEnhancedMetafile
            Set myShapeRange = mySlide.Shapes(mySlide.Shapes.Count)
 
                'Set position:
                myShapeRange.Left = 0
                myShapeRange.Top = 100
               
               '***HERE IS WHERE I TRIED TO SCALE THE IMAGE
               '***.....I WOULD LIKE TO MAKE IT A PERFECT FIT INSTEAD OF A GUESSTIMATE                
               'myShapeRange.ScaleWidth(0.9)
ohmetwAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jamie GarrochSenior Technical Consultant at BrightCarbonCommented:
Try this:

myShapeRange.Width= myPresentation.PageSetup.SlideWidth

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.