Excel Copy from Excel to Powerpoint using VBA

Joined
Apr 20, 2010
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top