Delay when updating a picture from excel to powerpoint

ineona

New Member
Joined
Jun 21, 2016
Messages
5
Hey,

I'm trying to copy a range from excel as a picture to Powerpoint while i'm viewing a different slide. In doing this I also format the picture to fit the picture using shape.top and shape.left. However, it seems that Powerpoint is executing my command until I get to the slide I'm trying to update. This results in a slide that resizes first thing when i get to the slide. It's not really a problem but I can't understand why it does this nor how to work around it?

Any suggestions are welcome!

Thanks in advance!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
If this is in a VBA subroutine, the you may need to wait until VBA has processed you command to copy/paste the range
Code:
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Just call this in your code:
Code:
Sleep(3000)  '3 second delay for the macro

I use this a lot when the command takes PowerPoint (or Excel) a while to finish.
 
Upvote 0

Forum statistics

Threads
1,223,803
Messages
6,174,684
Members
452,577
Latest member
Filipzgela

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