Adding/removing object from the SlideMaster Toggle action
Hi all!
Needing a little help from expert... I am trying to create a toggle to add and remove an object onto the slide Master.
I managed to create the action to add to the Slide Master but would need some help to create the toggle action to remove that same object. See my code below... Can anyone help?
Kindest regards,
Philippe
Code:
Sub AddBaseline()
On Error GoTo ErrorHandler
getMyInitials
Dim s As String, p As Presentation, o As Shape
s = "C:\Users\" & MyInitials & "\AppData\Roaming\Microsoft\Templates\Baseline.pptx"
Set p = Presentations.Open(s, ReadOnly:=True, WithWindow:=msoFalse)
p.Slides(1).Shapes.Range().Copy
p.Close
ActivePresentation.SlideMaster.Shapes.Paste
Exit Sub
ErrorHandler:
MsgBox ("Please verify if the file was renamed, moved or is missing")
End Sub