macro update running presentation

I have a macro in an Impress presentation that changes the text of a textfield. However the running presentation doesn’t update until I manually click to the next Page and then get back to the one that the Macro changes. So it doesn’t get applied to the running presentation until the slide is reloaded.

So how can I automatically update the viewed slide of the active presentation?

So for those who have the same problem. I did find a workaround by changing to the next and then again to the previous slide:

Sub updateSlideShow
oPres = ThisComponent.Presentation
Controller = oPres.Controller
End Sub