PPT 2007 VBA: How to force refresh of window?

  • Thread starter Thread starter Dave Jenkins
  • Start date Start date
D

Dave Jenkins

I'm guessing this has been asked and answered, but I can't seem to find the
solution.

I have an application selects a shape on the active window and then puts up
a MsgBox. In debug, that all works ok, but in actual running, when the
MsgBox goes up, the shape's not showing as selected. Once the MsgBox clears,
the shape *does* show as selected.

I'm guessing I need to force a refresh of the window after the select, but
before the MsgBox, but I can't find out how to do that. Is it possible via
VBA? Do I need to use a Windows API call? And if so, which one and how do I
code it?

Thanks.
 
Thanks, John.

Beore I go to the trouble of shifting to a form, are you telling me that
there's not even an API call I can make that will show the selection handles?

(Based on what you said, I tried putting the select in its own sub(), but
when I exited that and then issued the MsgBox, the shape still showed as
unselected. :-( )
 
Dave,
Shyam Pillai, a fellow MVP, has sample code on his web site to
determine what shape was clicked. You could save that ShapeName to a
variable and after dismissing the Msgbox just select it again via the
variable name.

Brian Reilly, MVP
 
Hi, Brian - thanks.

The problem is: the user has to make a decision based on what he sees as far
as the selected shape goes. Dismissing the MsgBox and *then* showing the
shape involved kind of puts the cart before the horse, in this siuation.

Upon reflection, I think the idea of a modeless form will work quite well -
the user will get the message, see the selection, and can edit or what-have
you and then select choices from the modeless msgbox.

I think I'll give that a try.
 
Back
Top