Hello all, I am new to using VBA and this is probably a simple solution. I am trying to copy a cell from an excel file that opens in the macro and then paste it to an existing textbox in PowerPoint. I can get the macro all the way to opening slide 2 of PowerPoint and paste to a new textbox but then I am lost of how to get it to paste to a specific textbox. Any help would be appreciated!!
Sub Macro3()
'
' Macro3 Macro
'
'
Dim PPT As PowerPoint.Application
Dim PPPres As PowerPoint.Presentation
Set PPT = New PowerPoint.Application
PPT.Visible = True
PPT.Presentations.Open Filename:="C:\NSS Presale\Test Customer Serving Plan Template.pptm"
myFile = Application.GetOpenFilename()
Workbooks.Open myFile
Range("E24").Select
Selection.Copy
PPT.Activate
With PPT.ActiveWindow
.View.GotoSlide Index:=2
.View.Paste
End With
End Sub
Sub Macro3()
'
' Macro3 Macro
'
'
Dim PPT As PowerPoint.Application
Dim PPPres As PowerPoint.Presentation
Set PPT = New PowerPoint.Application
PPT.Visible = True
PPT.Presentations.Open Filename:="C:\NSS Presale\Test Customer Serving Plan Template.pptm"
myFile = Application.GetOpenFilename()
Workbooks.Open myFile
Range("E24").Select
Selection.Copy
PPT.Activate
With PPT.ActiveWindow
.View.GotoSlide Index:=2
.View.Paste
End With
End Sub