Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Call up Powerpoint using Excel 2002

Hello All
From Excel 2002 I am calling up a PowerPoint presentation using VBA. However
I don't really think I'm going about it the best way. My code inserts an
already made up slideshow, runs it, waits 60 secs then deletes it and goes
back to sheet1. This usually works ok, but sometimes my slideshow may slow
down (I assume from other programs using up resources) and the show doesn't
finish in the usual 60 seconds. Excel will kill it and go back to sheet1
before my show is over.
my code
Range("A1").Select
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Range("A100").Select
ActiveSheet.OLEObjects.Add(Filename:= _
"C:\TestFolder\PowerPointTest.ppt", Link:= _
False, DisplayAsIcon:=False).Select
Selection.Verb Verb:=xlPrimary
Application.DisplayAlerts = True
Application.ScreenUpdating = True
Wait 60
Selection.Delete
Range("A1").Select
I would like to get rid of the timer and have excel recognise when the show
is actually over. I was unable to find anything in the help files. Also I'm
sure there's a better way to run a slideshow than inserting, running and
deleting it evertime.
Any assistance would be much appriciated,
Paul


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Call up Powerpoint using Excel 2002

Paul -

How about opening it in PowerPoint? I have some code that shows how to create an instance of
PowerPoint:

http://peltiertech.com/Excel/XL_PPT.html

You might also poke around the PowerPoint FAQ site:

http://pptfaq.com

I remember reading about how to detect the end of a slideshow, not on that site, but on a site
it linked me to. It was several months ago, so I can't recall precisely where it was, sorry.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Paul wrote:

Hello All
From Excel 2002 I am calling up a PowerPoint presentation using VBA. However
I don't really think I'm going about it the best way. My code inserts an
already made up slideshow, runs it, waits 60 secs then deletes it and goes
back to sheet1. This usually works ok, but sometimes my slideshow may slow
down (I assume from other programs using up resources) and the show doesn't
finish in the usual 60 seconds. Excel will kill it and go back to sheet1
before my show is over.
my code
Range("A1").Select
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Range("A100").Select
ActiveSheet.OLEObjects.Add(Filename:= _
"C:\TestFolder\PowerPointTest.ppt", Link:= _
False, DisplayAsIcon:=False).Select
Selection.Verb Verb:=xlPrimary
Application.DisplayAlerts = True
Application.ScreenUpdating = True
Wait 60
Selection.Delete
Range("A1").Select
I would like to get rid of the timer and have excel recognise when the show
is actually over. I was unable to find anything in the help files. Also I'm
sure there's a better way to run a slideshow than inserting, running and
deleting it evertime.
Any assistance would be much appriciated,
Paul



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
Call Center Management: How to calculate 'cost per call' Denniso6 Excel Discussion (Misc queries) 2 June 25th 06 05:01 PM
Outlook 2002 calendar dates exported to Excel 2002 sort incorrectl scampbell Excel Worksheet Functions 0 February 22nd 06 06:31 PM
Using PowerPoint to Call Excel/Macro? Losse Excel Discussion (Misc queries) 0 July 20th 05 03:00 PM
Can you print labels using Excel 2002 in a Word 2002 mail merge? Individual_ Excel Discussion (Misc queries) 3 December 17th 04 08:39 PM
Excel 2002 files attached to Outlook 2002 EMails change size AJStadlin Excel Programming 1 October 15th 03 12:12 AM


All times are GMT +1. The time now is 07:42 PM.

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

About Us

"It's about Microsoft Excel"