Advertisement

07.24.2008 at 09:24AM PDT, ID: 23592715
[x]
Attachment Details

Powerpoint VBA Code does not work in Office 2007

Asked by dblerner in Microsoft Powerpoint Presentation Software

Tags: Microsoft, Office 2007 Powerpoint, 2007

We have a Visual Basic 6 project that uses VBA to generate Powerpoint slides.
The program works fine with Office 2003 installed. But when we installed
Office 2007, the program gave us Error 70: Permission Denied.

gobjPP.ActiveWindow.ViewType = 6 ' ppViewOutline
gobjPP.ActivePresentation.Slides.Range.Select
gobjPP.ActiveWindow.Selection.TextRange.Characters(Start:=Len  (gobjPP.ActiveWindow.Selection.TextRange.Text), Length:=0).Select
gobjPP.ActiveWindow.Selection.TextRange.Text = "Some Text"

In this example, a slide is created as layout ppLayoutBlank and the program switches to outline
mode. The program sets the title on the outline for the slide. This code works for Office 2003, but the last line gives the permissions error on the last line.

Has the object model changed so that this code is no longer valid?
Start Free Trial
[+][-]07.24.2008 at 09:38AM PDT, ID: 22081035

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 09:41AM PDT, ID: 22081062

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 10:56AM PDT, ID: 22081759

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 11:09AM PDT, ID: 22081879

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 11:24AM PDT, ID: 22082024

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 03:00PM PDT, ID: 22083992

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Powerpoint Presentation Software
Tags: Microsoft, Office 2007 Powerpoint, 2007
Sign Up Now!
Solution Provided By: alainbryden
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628