ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA Excal start powerpoint on mix system of 2003 or 2007 (https://www.excelbanter.com/excel-programming/443433-vba-excal-start-powerpoint-mix-system-2003-2007-a.html)

Ismail Hakki Yildiz

VBA Excal start powerpoint on mix system of 2003 or 2007
 
Hi there,

I am using vba excel code to start Powerpoint by setting reference for
"Microsoft Powerpoint 12" and using

dim opp as PowerPoint.Application

set opp = CreateObject("PowerPoint.Application.12")

Although I am using the 2007 Version in the reference, when I start it
by code, everytime PowerPoint 2003 starts.

How can I define which version of PP should start??

Thanks a lot

isicom

reza

VBA Excal start powerpoint on mix system of 2003 or 2007
 
On Jul 29, 4:21*am, Ismail Hakki Yildiz
wrote:
Hi there,

I am using vba excel code to start Powerpoint by setting reference for

use
dim opp as New PowerPoint.Application

and remove the line set
opp = CreateObject("PowerPoint.Application.12")

I dont have more than one version of office installed so I cant test
this. But PowerPoint.Application should reference the latest version
of powerpoint

/m


"Microsoft Powerpoint 12" and using

dim opp as PowerPoint.Application

set opp = CreateObject("PowerPoint.Application.12")

Although I am using the 2007 Version in the reference, when I start it
by code, everytime PowerPoint 2003 starts.

How can I define which version of PP should start??

Thanks a lot

isicom




All times are GMT +1. The time now is 04:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com