PDA

View Full Version : Macro not working in MS PowerPoint 2010



Sekars
07-23-2019, 10:43 PM
Hello

Version : MS office 2010 in Windows 7 Professional

I tried to run 2 macros which can able to copy the images .png from folder to ppt macro enabled file.

But while running the macro and after running nothing working.

attached the files used for macro and the procedure followed.

Inviting any suggestions to resolve this issue.

thanks in advance

Sekar

John Wilson
07-23-2019, 11:30 PM
Steve's code works perfectly.

Did you create the folder C:/MyPictures/ (or change the path in the code)?

Nothing will happen if the folder does not exist

Sekars
07-24-2019, 12:22 AM
Actually i created the folder in C:/MyPictures/ and changed the .jpg to .png.

I found that a ppt file created in C:/MyPictures/ with last 3 slides all 10 images accommodated that needs to be 1 image per 1 slide.

Also after once again i runned the same code nothing is created in C:/MyPictures/ or where we are running the ppt file.

thank you

John Wilson
07-24-2019, 12:47 AM
Steve's code inserts the pictures in the created folder into PowerPoint so I'm not sure what you mean by "nothing is created in C:/MyPictures/ " You need to manually place the images in hat folder

Sekars
07-24-2019, 12:54 AM
Yes, i already placed the images there. But nothing was created except first time.

Can you please tell me your ppt version and windows version, is there any system restart required for this.

John Wilson
07-24-2019, 04:20 AM
I'm using 365 Office on W10 but the code should work on any version pretty well. There should be no need to restart