Print command incremented in a Microsoft 365 PowerPoint slide

Thomas PREHEL 0 Reputation points
2023-11-29T10:01:58.4+00:00

Hi everyone,

Glad to write here for the first time. Sorry for my english skills, I'm just french :-)

I use Microsoft 365 PowerPoint and I would like to implement a print button directly in my slideshow (.ppsx). The result would be to be able to print any slide with one clic, and not having to quit the slideshow.

Is it technically possible ? How can I do that ?

Thank you for your help !

Tom

Microsoft 365 and Office Development Other
Microsoft 365 and Office PowerPoint For business Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua 18,060 Reputation points Moderator
    2023-11-30T03:18:36.7433333+00:00

    Hi @Thomas PREHEL

    In my opinion, you need the help of VBA code.

    Such as the following code. Please note the code may not fully meet your request. So, I add the 'Office Development' tag on your thread, hope some experts could provide the support.

    Sub printCurr()
    ActivePresentation.PrintOptions.RangeType = ppPrintCurrent
    ActivePresentation.PrintOut
    End Sub
    
    

    You may press Alt + F11 to open VBA editor > If there is no Module, please insert one > Copy the code to one Module.20

    Then the macro 'printCurr' is created in this presentation. You may press Alt + F8 to have a check.

    18

    To use this macro more conveniently, I suggest you go to File > Options > Quick Access Toolbar > Select the Macros > Add the 'printCurr' macro on Quick Access Toolbar.

    19


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.