Is it possible to add a watermark to a powerpoint and block it so it can't be erased

monsefoster

New Member
Joined
Oct 29, 2013
Messages
40
Hello! I'm new to VBA, specially Powerpoint's. I was wondering if it's possible to add from VBA an image watermark and block it so user's when seeing/editing the file can't modify or erase it?

Another solution would be converting the ppt to pdf with the watermark but, I want to consider this as the last option.

Is it possible?

I'm only somewhat familiar with Excel's VBA. And I found something but only works for text and doesn't say anything about blocking it. I'm assuming is somewhat similar.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hello
To add the watermark, copy the image to the clipboard and run the macro.
For preventing the file from modifications, see this page:
Password Protect Your PowerPoint Slides | PowerPoint Ninja

Code:
Sub Wmark()
Dim ls%
' tested with PowerPoint 2003
' place image on Clipboard before running this
ActiveWindow.ViewType = ppViewSlideMaster
ActiveWindow.View.Paste
ls = ActivePresentation.SlideMaster.Shapes.Count
ActivePresentation.SlideMaster.Shapes(ls).Select
With ActiveWindow.Selection.ShapeRange
    
    .Fill.Transparency = 0#
    .Height = 396
    .Width = 529#
    .Align msoAlignCenters, msoTrue
    .Align msoAlignMiddles, msoTrue
    .PictureFormat.Brightness = 0.85
    .PictureFormat.Contrast = 0.15
    .ZOrder msoSendToBack
    
End With
ActiveWindow.ViewType = ppViewNormal
End Sub
 
Upvote 0

Forum statistics

Threads
1,225,657
Messages
6,186,257
Members
453,347
Latest member
mrizkiii28

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