|
Open Microsoft PowerPoint from Excel
This free macro will open the Microsoft PowerPoint program on your computer. You do need to have this program first. This will not open a specific file or PowerPoint presentation but only the program itself. It can be attached to a button or checkbox or form and set to run when that item is clicked or this code can be input into an existing macro in excel.
Note:You must already have Microsoft PowerPoint on your computer for this macro to work.
Where to install the macro: Module
Open Microsoft PowerPoint from Excel
Sub Open_PowerPoint()
'Opens Microsoft PowerPoint from Excel
Dim objPPT As Object
Set objPPT = CreateObject("PowerPoint.Application")
objPPT.Visible = True
End Sub
How to Install the Macro
- Select and copy the text from within the grey box above.
- Open the Microsoft Excel file in which you would like the Macro to function.
- Press "Alt + F11" - This will open the Visual Basic Editor - Works for all Excel Versions.
Or For other ways to get there, Click Here.
For Excel Versions Prior to Excel 2007 Go to Tools > Macros > Visual Basic Editor
For Excel 2007 Go to Office Button > Excel Options > Popular > Click Show Developer tab in the Ribbon. Then go to the Developer tab on the ribbon menu and on the far left Click Visual Basic
- On the new window that opens up, go to the left side where the vertical pane is located. Locate your Excel file; it will be called VBAProject (YOUR FILE'S NAME HERE) and click this.
- If the Macro goes in a Module, Click Here, otherwise continue to Step 8.
- Go to the menu at the top of the window and click Insert > Module
- Another window should have opened within the Visual Basic Editor's window. Within this new window, paste the macro code. Make sure to paste the code underneath the last line of anything else that is in the window.
- Go to Step 8.
- If the Macro goes in the Workbook or ThisWorkbook, Click Here, otherwise continue to Step 8.
- Directly underneath your excel file called VBAProject(your file's name here), click the Microsoft Excel Objects folder icon to open that drop-down list.
- Then, at the bottom of the list that appears, double-click the ThisWorkbook text.
- A new window inside the Visual Basic Editor's window will appear. In this new window, paste the code for the macro. Make sure to paste this code underneath the last line of any other code which is already in the window.
- Go to Step 8.
- If the Macro goes in the Worksheet Code, Click Here, otherwise continue to Step 8.
- Directly underneath your excel file called VBAProject(your file's name here), click the Microsoft Excel Objects folder icon to open that drop-down list.
- Within the list that appears you will see every worksheet that is in that excel file. They will be listed as such: Sheet1(NAME OF SHEET HERE) and under that will be Sheet2(NAME OF SHEET HERE). Select the sheet in which you want the macro to run and double-click that sheet.
- A new window inside the Visual Basic Editor's window will appear. In this new window, paste the code for the macro. Make sure to paste this code underneath the last line of any other code which is already in the window.
- Repeat steps b and c for every sheet you want the macro to work in. Putting the macro in one sheet will not enable it for any other sheets in the workbook.
- Go to Step 8.
- Close the Microsoft Visual Basic Editor window and save the Excel file. When you close the Visual Basic Editor window, the regular Excel window will not close.
- You are now ready to run the macro.
Similar Helpful Excel Resources
Hello everyone.
I have managed to put the last recommendation I receieved from the Forum into practice and works perfectly well.
I managed to connect Excel with Word to produce fully automated report templates!!!!!
Now I want to move a further step and connect Excel with Powerpoint or Word with Powerpoint so that I have a presentation with this results ready as well.
Please advice if this is possible and if it is how this is done.
Thank you in advance
Mike
Today a company e-mailed me a quotation with the extension: xls
I don't have Excel and eventually found Excel Viewer 2003. This took 45 mins
to download, and then didn't work. The Excel File Graphic had appeared atop
the quotation file - but when clicked on Excel Viewer 2003 opened and just
said: cannot open this file type.
Any ideas? Would appreciate solution. Running XP SP2 on a Dimension 8250..
Thanks
I'm hoping that someone can help me.
At the moment, the company org charts are produced in Powerpoint 2003 using Microsoft Org Chart. The same information is then added to the company phone list in excel.
Every quarter, someone has to manually go through several excel files and add line manager designations, based on the information held in the org charts.
Is there any way to use an excel list containing the employee name and line manager details to generate the organisation chart in powerpoint? (even so far as adding the right names to the right teams and then someone manually adjusting the layout) Ideally this would be combined with the phone list, to give us a single vlookup point and a single update point.
The list runs over several slides, the first shows the management structure to the key team leaders, and then an individual slide showing the breakdown of the team beneath each leader.
If so, can anyone give me an example of the layout you need in the excel list, and the layout this would product in Excel?
Many thanks for your time!
Ellie
I am trying to open a Powerpoint template from Excel using late binding. The following code works, however I would like to minimize or hide the Powerpoint application while the presentation is being populated with Excel data.
Have tried removing Line 7, but thencode fails at line 8.
Any help much appreciated.
Code:
Line 1: Dim ppApp As Object
Line 2: Dim ppPres As Object
Line 3: Dim ppSlide As Object
Line 4: Dim ppShape As Object
Line 5: Dim ppSlideNum As Integer
Line 6: Set ppApp = CreateObject("Powerpoint.Application")
Line 7: ppApp.Visible = True
Line 8: Set ppPres = ppApp.presentations.Open(Environ("userprofile") & "\ROI Advantage\Presentation Template.pot")
Line10: Set ppSlide = ppPres.Slides
'-----------------------------------------------------------------------------
'This selects slide 1 and copies the 'subject' and 'customer' data to the slide
'-----------------------------------------------------------------------------
Line 11: ppSlideNum = 1
Line 12: ppSlide(ppSlideNum).Select
Line 13: Set ppShape = ppPres.Slides(ppSlideNum).Shapes("txtSubject")
Line 14: ppShape.TextFrame.TextRange.Characters(Start:=1, Length:=0).Select
Line15: ppShape.TextFrame.TextRange.Text = ""
Line 16: ppShape.TextFrame.TextRange.Characters(Start:=1, Length:=0).Text = Sheet1.Range("Subject").Text
Hi All
I can get Excel to open a Word Doc all OK, but can Excel Open a PowerPoint Document?
using VBA macro
Many thanks
\\ccada7mfsrvr1\OFCSHARE\RABranch\DIVISION\Customer_Feedback_project\PowerPoint_Slides\Customer_Satisfaction_for_Primary _Team_(2_chart_master).ppt
The path above is where my powerpoint slide is located. I would like to create a Macro Button in Excel to open the above powerpoint and update the excel links.
I tried the simple method of recording the macro and assigning the form button, but it doesn't work for me. Please help!!
Hi,
I have found some code that copies and pastes an excel sheet into a powerpoint presentation, which is great. But with this code Powerpoint has to be opened manually.
Is there a way to include some code in the macro that opens powerpoint first?
Thanks
Hi All,
I have a couple of questions about using VBA within Powerpoint;
I want to call an already opened Excel Spreadsheet by clicking on an image
I want to open another Excel Spreadsheet via clicking on an image: I obviously know how to do this from within the VBE in excel but don't know how I get to give excel orders from within Powerpoint
I know how to assign macro's by clicking on images within Powerpoint BTW.
Any help/advice is appreciated.
when i ask a question to the assistant i get a blank screen for the answer
|
|