How do I specify the powerpoint.application version in VBA?

Johnny C

Well-known Member
Joined
Nov 7, 2006
Messages
1,069
Office Version
  1. 365
Platform
  1. Windows
I've got some code chucking reports from XL2007 into a powerpoint presentation.

The PC default powerpoint is Powerpoint 97, but there's also powerpoint 2007. I can't change the default to the later one because it's on XP clamped down, I can't access useful things like changing default programs for file-types.

So, when I do

Code:
Dim PPApp As PowerPoint.Application

If PPApp Is Nothing Then Set PPApp = New PowerPoint.Application

it opens Powerpoint97.

I know you can specify the version to open, but VBA Help just says you can, it doesn't mention anything useful like how to do that.

How do I specify the PP version?

TIA
 
Sounds like a lot of bother then... easier to pop up a dialog saying 'Open PP 2007 before continuing' :)
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
It's not so bad if you are opening a specific file, since you can then use GetObject to grab a reference to it.
 
Upvote 0
true.

Unfortunately for creating new presentations I don't know where my PP07 application is, as I can't see my C drive. I can probably guess but you never know in this place.

I could create a 'new' doc in PP07 by opening a blank .pptx saved in a particular location, and just make sure it's saved to a new name.
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top