View Single Post
 
Old 09-15-2021, 10:35 AM
alex311 alex311 is offline Windows XP Office 2019
Novice
 
Join Date: Sep 2021
Posts: 2
alex311 is on a distinguished road
Default Help with VBA to keep source formatting when moving presenter notes over to existing presentation

Hi!

I'm hoping to edit this code (which works perfectly for plain text) to keep source formatting of the presenter notes when moving from "TEST1.pptx" to "TEST2.pptx". To be clear, this current code works for plain text, but I would like to edit it so that it keeps the source formatting.

Is this possible and if so, could someone point me in the right direction? Thank you in advance!


Sub switchNotes()
Dim oTarget As Presentation
Dim oSource As Presentation
Dim i As Integer
On Error Resume Next
Set oTarget = Presentations("TEST2.pptx")
Set oSource = Presentations("TEST1.pptx")
For i = 1 To oSource.Slides.Count
oTarget.Slides(i).NotesPage.Shapes(2) _
.TextFrame.TextRange = _
oSource.Slides(i).NotesPage.Shapes(2) _
.TextFrame.TextRange
Next i
End Sub

Last edited by alex311; 09-16-2021 at 09:43 AM.
Reply With Quote