Table Insert + Resize in Powerpoint keeps resizing

jul_thi

New Member
Joined
May 26, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Whenever I call a function that inserts a copies a table from Excel and pastes it to a Powerpoint Slide, with additional resizing. The table is resized automatically, when it doesn't fit the pagesize, and also seems to ignore my top parameter aligning the table vertically centered in my slide. How do I stop Powerpoint from doing so?

VBA Code:
    Set ppShape = ppSlide.Shapes(ppSlide.Shapes.Count)
    ppShape.name = "tableSummary"
    ppShape.Left = 48.02496
    ppShape.Top = 95
    ppShape.Width = 864.45
    ppShape.Height = 245

Another version is without the height, because I want Powerpoint to keep the height from Excel.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Since I now came across a similar problem with charts, I might add that this code works well, when executed alone, but not so when executed in a series of function calls.
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,416
Members
448,960
Latest member
AKSMITH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top