Consulting

Results 1 to 6 of 6

Thread: Macro not working in MS PowerPoint 2010

  1. #1
    VBAX Newbie
    Joined
    Jul 2019
    Posts
    4
    Location

    Macro not working in MS PowerPoint 2010

    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
    Attached Files Attached Files

  2. #2
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    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
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  3. #3
    VBAX Newbie
    Joined
    Jul 2019
    Posts
    4
    Location
    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

  4. #4
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    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
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  5. #5
    VBAX Newbie
    Joined
    Jul 2019
    Posts
    4
    Location
    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.

  6. #6
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    I'm using 365 Office on W10 but the code should work on any version pretty well. There should be no need to restart
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •