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

Ok, I've read lots of code but I don't see any way to copy a range of cells
and paste it as a worksheet object in powerpoint. Will someone help me
resort to Sendkeys? So far I've got:

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
' from here in PP I would need to:

Alt E 'selects the edit menu
arrow down six times 'gets me to the paste special option
enter 'selects the paste special option
'as excel worksheet object is the default, so no stroke needed
tab 'gets me to the ok button
enter 'selects ok and pastes my worksheet object on the selected slide.

End Sub

Can it be done this way??? Please anyone!

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
Paste object from excel to powerpoint Aaron Excel Programming 5 February 6th 08 04:13 PM
VB script in Excel object in Powerpoint (Urgent) epak Excel Discussion (Misc queries) 1 March 24th 06 05:04 PM
trying to "paste special" data; why does worksheet object appear? alyssa Excel Discussion (Misc queries) 1 September 9th 05 02:08 AM
Importing Excel Object in Powerpoint technically challanged Excel Discussion (Misc queries) 0 January 31st 05 09:25 PM
using create object and sendkeys from excel to FTP Bobsa Excel Programming 4 April 13th 04 09:55 PM


All times are GMT +1. The time now is 10:26 AM.

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"