Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default Paste object from excel to powerpoint

I have a graph and combo boxes that sit over .Range("L1:AD40"). When I
manually copy this range and paste special to a PP slide as an MS excel
object, I get exactly what I want. Please help to finish this code....

Sub Paste()
Dim objPPT As Object
Dim objPres As Object

ActiveWorkbook.Sheets("UTL").Range("L1:AD40").Copy

Set objPPT = CreateObject("PowerPoint.Application")
Set PPApp = GetObject(, "Powerpoint.Application")
objPPT.Visible = True
Set objPres = objPPT.presentations.Open("C:\documents and
Settings\scuap\desktop\test.ppt")

PPApp.ActiveWindow.View.GotoSlide 2
'I need to paste special as an object here but can't figure the code out?

End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Paste object from excel to powerpoint

Not sure if this site will help with paste special but it gives some
information on copying to power point from excel.

http://www.ozgrid.com/forum/showthread.php?t=57762

"Aaron" wrote:

I have a graph and combo boxes that sit over .Range("L1:AD40"). When I
manually copy this range and paste special to a PP slide as an MS excel
object, I get exactly what I want. Please help to finish this code....

Sub Paste()
Dim objPPT As Object
Dim objPres As Object

ActiveWorkbook.Sheets("UTL").Range("L1:AD40").Copy

Set objPPT = CreateObject("PowerPoint.Application")
Set PPApp = GetObject(, "Powerpoint.Application")
objPPT.Visible = True
Set objPres = objPPT.presentations.Open("C:\documents and
Settings\scuap\desktop\test.ppt")

PPApp.ActiveWindow.View.GotoSlide 2
'I need to paste special as an object here but can't figure the code out?

End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Paste object from excel to powerpoint

The info. on this site has worked well for me in the past.
http://peltiertech.com/Excel/XL_PPT.html

Regards,
Ryan--


--
RyGuy


"JLGWhiz" wrote:

Not sure if this site will help with paste special but it gives some
information on copying to power point from excel.

http://www.ozgrid.com/forum/showthread.php?t=57762

"Aaron" wrote:

I have a graph and combo boxes that sit over .Range("L1:AD40"). When I
manually copy this range and paste special to a PP slide as an MS excel
object, I get exactly what I want. Please help to finish this code....

Sub Paste()
Dim objPPT As Object
Dim objPres As Object

ActiveWorkbook.Sheets("UTL").Range("L1:AD40").Copy

Set objPPT = CreateObject("PowerPoint.Application")
Set PPApp = GetObject(, "Powerpoint.Application")
objPPT.Visible = True
Set objPres = objPPT.presentations.Open("C:\documents and
Settings\scuap\desktop\test.ppt")

PPApp.ActiveWindow.View.GotoSlide 2
'I need to paste special as an object here but can't figure the code out?

End Sub

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default Paste object from excel to powerpoint

Sorry not really what I'm looking for. The code I provided below gets me to
the point where I would simply use my mouse to select 'edit, pastespecial, MS
Excel object' There must be a line of code to do this or maybe some code to
walk through those menu options? Any help is appreciated.

"JLGWhiz" wrote:

Not sure if this site will help with paste special but it gives some
information on copying to power point from excel.

http://www.ozgrid.com/forum/showthread.php?t=57762

"Aaron" wrote:

I have a graph and combo boxes that sit over .Range("L1:AD40"). When I
manually copy this range and paste special to a PP slide as an MS excel
object, I get exactly what I want. Please help to finish this code....

Sub Paste()
Dim objPPT As Object
Dim objPres As Object

ActiveWorkbook.Sheets("UTL").Range("L1:AD40").Copy

Set objPPT = CreateObject("PowerPoint.Application")
Set PPApp = GetObject(, "Powerpoint.Application")
objPPT.Visible = True
Set objPres = objPPT.presentations.Open("C:\documents and
Settings\scuap\desktop\test.ppt")

PPApp.ActiveWindow.View.GotoSlide 2
'I need to paste special as an object here but can't figure the code out?

End Sub

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Paste object from excel to powerpoint

I'm not sure then. Perhaps you can link Excel to PPT as such:
http://www.bettersolutions.com/power...I748519512.htm

I've done this before and it works flawlessly.

Regards,
Ryan--


--
RyGuy


"Aaron" wrote:

Sorry not really what I'm looking for. The code I provided below gets me to
the point where I would simply use my mouse to select 'edit, pastespecial, MS
Excel object' There must be a line of code to do this or maybe some code to
walk through those menu options? Any help is appreciated.

"JLGWhiz" wrote:

Not sure if this site will help with paste special but it gives some
information on copying to power point from excel.

http://www.ozgrid.com/forum/showthread.php?t=57762

"Aaron" wrote:

I have a graph and combo boxes that sit over .Range("L1:AD40"). When I
manually copy this range and paste special to a PP slide as an MS excel
object, I get exactly what I want. Please help to finish this code....

Sub Paste()
Dim objPPT As Object
Dim objPres As Object

ActiveWorkbook.Sheets("UTL").Range("L1:AD40").Copy

Set objPPT = CreateObject("PowerPoint.Application")
Set PPApp = GetObject(, "Powerpoint.Application")
objPPT.Visible = True
Set objPres = objPPT.presentations.Open("C:\documents and
Settings\scuap\desktop\test.ppt")

PPApp.ActiveWindow.View.GotoSlide 2
'I need to paste special as an object here but can't figure the code out?

End Sub



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default Paste object from excel to powerpoint

Thanks for you help. Does not seem possible. I've got another post going now
where I'm asking if anyone can help me from the last line of my code with
SendKeys. I can do it on my keyboard, so maybe someone will help me do it
that way.

"ryguy7272" wrote:

I'm not sure then. Perhaps you can link Excel to PPT as such:
http://www.bettersolutions.com/power...I748519512.htm

I've done this before and it works flawlessly.

Regards,
Ryan--


--
RyGuy


"Aaron" wrote:

Sorry not really what I'm looking for. The code I provided below gets me to
the point where I would simply use my mouse to select 'edit, pastespecial, MS
Excel object' There must be a line of code to do this or maybe some code to
walk through those menu options? Any help is appreciated.

"JLGWhiz" wrote:

Not sure if this site will help with paste special but it gives some
information on copying to power point from excel.

http://www.ozgrid.com/forum/showthread.php?t=57762

"Aaron" wrote:

I have a graph and combo boxes that sit over .Range("L1:AD40"). When I
manually copy this range and paste special to a PP slide as an MS excel
object, I get exactly what I want. Please help to finish this code....

Sub Paste()
Dim objPPT As Object
Dim objPres As Object

ActiveWorkbook.Sheets("UTL").Range("L1:AD40").Copy

Set objPPT = CreateObject("PowerPoint.Application")
Set PPApp = GetObject(, "Powerpoint.Application")
objPPT.Visible = True
Set objPres = objPPT.presentations.Open("C:\documents and
Settings\scuap\desktop\test.ppt")

PPApp.ActiveWindow.View.GotoSlide 2
'I need to paste special as an object here but can't figure the code out?

End Sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Excel & Powerpoint Copy & paste Tigerxxx Excel Discussion (Misc queries) 0 July 14th 08 03:16 PM
Excel to Powerpoint - copy/paste text box AussieDave Excel Programming 0 December 5th 07 05:45 AM
VB script in Excel object in Powerpoint (Urgent) epak Excel Discussion (Misc queries) 1 March 24th 06 05:04 PM
excel to powerpoint- paste a range k2sarah Excel Programming 1 February 19th 06 09:19 PM
Importing Excel Object in Powerpoint technically challanged Excel Discussion (Misc queries) 0 January 31st 05 09:25 PM


All times are GMT +1. The time now is 09:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"