This document contains code to combine PowerPoint slides for multiple participants. It opens an existing PowerPoint template, duplicates the first slide, replaces placeholder text with participant names from an Excel sheet, repeats for each participant row, saves the combined file, and closes PowerPoint. The code sets up PowerPoint and presentation objects, retrieves participant names from an Excel sheet in a loop, duplicates slides and replaces text on each, then saves and closes the combined presentation.
Original Description:
para relizar diplomas en ppt con el desarrollador ( macro) de excel
This document contains code to combine PowerPoint slides for multiple participants. It opens an existing PowerPoint template, duplicates the first slide, replaces placeholder text with participant names from an Excel sheet, repeats for each participant row, saves the combined file, and closes PowerPoint. The code sets up PowerPoint and presentation objects, retrieves participant names from an Excel sheet in a loop, duplicates slides and replaces text on each, then saves and closes the combined presentation.
This document contains code to combine PowerPoint slides for multiple participants. It opens an existing PowerPoint template, duplicates the first slide, replaces placeholder text with participant names from an Excel sheet, repeats for each participant row, saves the combined file, and closes PowerPoint. The code sets up PowerPoint and presentation objects, retrieves participant names from an Excel sheet in a loop, duplicates slides and replaces text on each, then saves and closes the combined presentation.
filaInicial = 2 Do While shtParticipantes.Cells(filaInicial, 1) <> "" strParticipante = shtParticipantes.Cells(filaInicial, 1)
Set objSld = objPres.slides(1).Duplicate
For Each objShp In objSld.Shapes If objShp.HasTextFrame Then If objShp.TextFrame.hastext Then objShp.TextFrame.TextRange.Replace "<nombre>", strParticipante End If End If Next filaInicial = filaInicial + 1 Loop objPres.slides(1).Delete objPres.Save objPres.Close