![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
How can i call a powerpoint show to open from an excel macro.
I have tried using microsoftappl.xlpowerpoint or something similar... but it just opens a new presentation. TIA |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Los Angeles, CA
Posts: 752
|
Sub DisplayWordAutomation()
Set wordapp = CreateObject("Word.Application") 'WordApp.Application.Visible = True With wordapp .Visible = True .Activate .Run (" type macro name here ") .Quit SaveChanges:=wdDoNotSaveChanges End With End Sub Here is a macro I use to open word from excel and then run a word macro. I would just change the word stuff to powerpoint and create a macro in powerpoint to open the file you want and type that macro name in the macro above (no spaces when you type the name). Let me know if it works. |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
but if i am simply trying to open a file do i really need to open one application (.ppt) to open another application(.pps)
there must be an easier way. |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Los Angeles, CA
Posts: 752
|
I am not sure I understand.
You are trying to open Powerpoint in Excel. Or Start a Presentation in Powerpoint. |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Hi Qroozn:
I just wanted to jump in on the issue of *.ppt vs *.pps A file that has a pps (powerPoint show extension) will automatically begin to play -- without having to first open the file and then SlideShow|ViewShow otherwise a .pps file is the same as .ppt file. Regards! Yogi Anand |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Feb 2002
Location: Los Angeles, CA
Posts: 752
|
Good Idea Yogi, I did'nt think about that.
Parra |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
I understand that yogi.. thats why i named the file as .pps but surely (hopefully) there must be a different way of opening the file then to open ppt application, and call a macro from ppt which then runs the pps file. |
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
sorry.. my fault. I will explain a bit clearer.
I have an excel program. and i also have a powerpointpresentation about the program. I want to click on a button in excel and have it run the powerpointshow. I hope that is clearer |
|
|
|
|
|
#9 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
make a hyperlink that will run it
|
|
|
|
|
|
#10 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|