I am trying to add a watermark to a PowerPoint slide from Excel with VBA and don't know where to start. I have searched on Google and found nothing. There is one question on Stackoverflow that helped a little but I couldn't follow it. I am wondering if someone could refer me to somewhere or point me in the right direction? Again, I just want to add a watermark to one of the slides in Master View. Thanks!
相关问题
- Error handling only works once
- Excel formula in VBA code
- Excel VBA run time error 450 from referencing a ra
- DoCmd.TransferSpreadsheet is not recognizing works
- VBA Self-Function returns #VALUE! Error on cell, w
相关文章
- Unregister a XLL in Excel (VBA)
- How to programmatically read and change slide note
- numeric up down control in vba
- Declare a Range relative to the Active Cell with V
- How to disable changes in a cell using vba?
- MsgBox Yes/No Excel VBA
- Rounding up to nearest higher integer in VBA
- Deleting columns from a table with merged cells
To change a slide in Master View, you can work with the
CustomLayouts
collection.Note that you'll have to refer to a specific
CustomLayout
by its index, and not itsName
, as this question points out.This example code
Presentation
Picture 1
and pastes it in theShapes
collection of the firstCustomLayout
, which for me is the Title Slide Layout.I assume from here you can modify its size/position or make any other desired changes.
My Original Watermark
Title Slide Layout showing applied watermark