Share via

Powerpoint Access VBA

Anonymous
2016-06-14T11:48:14+00:00

From Access how do I work with an active i.e. open presentation?

I know how to create a new presentation with VBA in Access e.g. 

Dim ppObj As PowerPoint.Application

Dim ppP As Object

    Set ppObj = New PowerPoint.Application

    Set ppP = ppObj.Presentations.Add

But, how do I gather information or make changes to an open presentation?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2016-06-14T13:24:32+00:00

    This is certainly possible. I have done this myself where we created a slide show with images based on the results of a survey. I loved working on that project.

    Forget about "as object" (and CERTAINLY forget about mixing the two); use early binding exclusively, so you get intellisense.

    Record small macros in PP and check what was recorded. For example you can turn on the recorder, add the first slide, and stop.

    Was this answer helpful?

    0 comments No comments
  2. ScottGem 68,830 Reputation points Volunteer Moderator
    2016-06-14T12:38:41+00:00

    This is more a Powerpoint question not an Access question. When you use Office Automation to control another VBA compliant app you are writing code compatible with that application. So if you want to know how to use VBA with Powerpoint I would suggest reposting in a Powerpoint forum.

    Was this answer helpful?

    0 comments No comments