Message Box capturing Application - anyway around it?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a VBA script written in PowerPoint application.

In the code, I want to open a specific slide then pause/wait on the slide
while it is being reviewed. I don't want to use stop since this requires the
operator to restart the code.

I would like to use a message box to say something like "when done reviewing
slide, click continue". However, when I do this, the message box captures
the PowerPoint application and the slide can't be reviewed.

Is there a way to turn off the capturing of the application by the message
box?

Thanks.
 
I'm not completely clear on what you are doing, but here is an idea:

Dim stillPaused As Boolean

Sub GoAndPause()
stillPaused = True
ActivePresentation.SlideShowWindow.View.Next
While stillPaused = True
DoEvents
Wend
ActivePresentation.SlideShowWindow.View.Next

End Sub

Sub ResumeNow()
stillPaused = False
End Sub

Clicking on a button linked to GoAndPause will take you to the next slide
and wait until a button linked to ResumeNow is pressed and then proceed
to the next slide. The button linked to ResumeNow could have the words
"Press here to continue" in it. GoAndPause could even have code to
create and/or show that button where you want it. Is this the kind of
thing you had in mind? It avoids the MsgBox taking over the screen by
simply relying on buttons.

--David

--
David M. Marcovitz, Ph.D.
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
Here is what I am trying to do.

Within Powerpoint, I have written a macro to open a powerpoint presentation,
go to a slide, then highlight a shape. I have a list of shapes I need to
highlight and take action upon. So I have a loop that says display shape1.
This works great if I exit my code then. The presentation is open, the slide
is displayed with the associated shape highlighted.

However, I wanted to be able to loop through this process. When shape1 is
highlighted, I wanted to be able to add a hyperlink (for example), manually
close that presentation then go to the next briefing shape and so on. I
wrote a little wait subroutine to give me adequate time to take action on the
shape. However, the macro "captures" the powerpoint application and will not
display any powerpoint presentations/slides/shapes.

So the question really is: Can you run a macro on an application and while
it is running be able to do anything manually with the application?

I asked another question related to this posting if I could get the Action
Settings window to display then I could do it within the action settings
window.

Thanks for responding
 
OK. That explains it more clearly. My guess is that you can't do what
you want to do, but there are many in this group who are more expert than
I, and they should be able to give you a definitive answer.
--David

--
David M. Marcovitz
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
So the question really is: Can you run a macro on an application and while
it is running be able to do anything manually with the application?

Perhaps yes, if you have PPT2000 or higher; these versions support modeless
forms.

Your code could bring up a form modelessly; it stays on screen but you can
still do other stuff with the app. The form wouldn't do anything until you
dismiss it with the X or click a button on the form that contains code to make
it do whatever's next.

Once you've created your form, you'd invoke it with:

MyFormName.Show(False)


I asked another question related to this posting if I could get the Action
Settings window to display then I could do it within the action settings
window.

Thanks for responding

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Back
Top