(1) Depending on some fields in Excel, I need to select one of the three masters for each new slide. How do I do this in VBA? I believe I can name the masters, but I would need to select it from VBA (as one does with the 'Layout" button on the Ribbon)
(2) Once I have the right template selected for each slide, I need to fill in the fields. Now I can do this 'dirty' by presetting the contents of the fields in the master and doing a replace
Code: Select all
For Each objShp In objSld.Shapes
If objShp.HasTextFrame Then
If objShp.TextFrame.HasText Then
objShp.TextFrame.TextRange.Replace "Placeholder field1", "my variable text"
End If
End If
Next