Visual Basic and PPT error

  • Thread starter Thread starter Ralph
  • Start date Start date
R

Ralph

Hi friends,

the following VB5-code runs on many different W2K and XP
machines with Powerpoint XP, but not on a number of
identical PCs from one company:

'(Reference to PPT Object Lib Version 10)
Dim AppPPT As PowerPoint.Application
Set AppPPT = CreateObject("PowerPoint.Application")
AppPPT.Visible = True
AppPPT.WindowState = ppWindowMinimized
Set pp = AppPPT.Presentations.Open("praesentation.ppt")

The system returns: Method '~' of object '~' failed,
Number -2147467259.

The PCs in question got the english Powerpoint XP with an
additional German language kit on Windows XP.

It seams to be independant of PPT-Service Packs, since we
successfully ran the program on Win2K and WinXP with
different Powerpoint XP-releases: No SP, SP-1 and SP-2.

Is there a simple configuration trick to maybe enable this
functionality in Powerpoint or is anybody aware of some
bugs with these language kits? Maybe problems with user
rights?

Thank you very much for any hint solving this problem.

Best regards from Switzerland
Ralph
 
Hi Shyam

Thanks for your reply. No, I didn't do any updates or
reinstallations yet, since I want to find the most direct
way to solve it on this large number of PCs.

What about this issue:
http://support.microsoft.com/default.aspx?scid=kb;EN-
US;317405

On my working system I set .AutomationSecurity to any of
the three values, but I never receive an error. Is this
article Q317405 talking about a Service Pack bug fix or is
it just a developer information?

Thanks in advance for helping me.

Ralph
 
Back
Top