Hi All,
I'm trying to dynamically update some text boxes on a powerpoint presentation from access vba.
I need to be able to loop through the text field/text box objects on a slide so i can set their values.
I have....
Many Thanks,
Spin.
I'm trying to dynamically update some text boxes on a powerpoint presentation from access vba.
I need to be able to loop through the text field/text box objects on a slide so i can set their values.
I have....
Code:
Dim strPowerPointFile As String
Dim pptobj As PowerPoint.Application
Set pptobj = New PowerPoint.Application
pptobj.Visible = True
pptobj.WindowState = ppWindowMinimized
strPowerPointFile = CurrentProject.Path & "\My PPT presentation.ppt"
With pptobj.Presentations.Open(strPowerPointFile)
Dim ppSlide As PowerPoint.Slide
For Each ppSlide In .Slides
Debug.Print ppSlide.SlideNumber 'this works fine
Dim ppField As PowerPoint. [COLOR="Red"]'WHAT DO I PUT HERE??[/COLOR]
For Each ppField In .Slides [COLOR="Red"]'WHAT DO I PUT HERE??[/COLOR]
Debug.Print ppField. [COLOR="Red"]'so that i can get the text box name here and set the value of it??[/COLOR]
Many Thanks,
Spin.