Share via

Assistance Required to Embed File Inline

Anonymous
2022-08-18T23:35:47+00:00

Hi! I'm trying to create an upload file button in Microsoft PowerPoint, and I've managed to get the Browse Files pop-up to open with the first part of my code, but have been unsuccessful in embedding the selected file into the PowerPoint. I face similar issues when creating the same button for Word. My version of Microsoft is M365, but when I created this button using the same code in Microsoft 2016, the button worked perfectly fine.

This was my original code:

This is my code now:

And I get the following error message:

May I have some assistance with this please?

Thanks!

Microsoft 365 and Office | PowerPoint | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Steve Rindsberg 99,166 Reputation points MVP Volunteer Moderator
    2022-08-19T15:20:50+00:00

    We can certainly help here, but a bit more information first, please.

    "Embed file inline" is a Word concept. It has no equivalent in PowerPoint, where you'd normally insert an image. That's why your code doesn't work in PPT.

    What exactly do you want to accomplish? If you were to do this manually, would you choose Insert | Picture | etc. or would you choose Insert | Object? Put another way, do you just want to add a picture to your presentation or do you want to create a button that will launch another program and load the chosen image?

    Finally, when you reply, please post your code by copy/pasting in the actual text; that way anyone who wants to help you can try out the code themselves. With just a picture of your code, someone would have to retype the whole thing, which is a bit much to ask of volunteers (and anyone here who can help you is a volunteer; the paid help will just tell you to go to a different forum).

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-08-19T09:36:02+00:00

    Hello [Insert NeonRev],

    Thank you for using our Microsoft community.

    I hate to give you bad news, but this question is outside the scope of the Answers support community. The best place to get help with the VBA function in PowerPoint is Microsoft Docs, which aims to support more advanced users like you.

    Here is a link to the forum where you can raise specific scenarios and share your idea to help solve the problem.

    I won't be able to help you, but I'll leave this question open in case any of our amazing volunteers has some insights for you.

    Thank you for your understanding and support.

    Sincerely,

    Mavis - MSFT | Microsoft Community Support Specialist

    Was this answer helpful?

    0 comments No comments