Discussion Locked

VBA & Automation

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How can I completely disable using the Esc key in PowerPoint? I want to ensure that end-users can not disrupt an automatic timed slide show. The slide show starts from an ole embedded object in Access97 & is viewed using PowerPointViewer. While it is running a number of things are happening, including the running of a KRONOS Script file that they are not supposed to see. How do I FORCE them to sit back and watch the entire show.
(Maybe even display an error message if they try to click, tab, page-down, esc, etc.)

The Access program will be on a NT PC with the bare minimums and PowerPointViewer and Access 97. The Access program will start in start up the main screen is maximized & modal; I have keypress events in place that will keep them from exploring. Unfortunately unbound OLE objects do not have a readily apparent way to trap user events! HELP!!!!
I am willing to add code to PowerPoint or Access, whatever will work! Any advice appreciated!

3 replies

by donq

Hay Sheryl,

Never tried this with Esc but you might construct an AutoKeys macro that uses the RunCode Action to set Esc to a zero length string. Be sure to reset everything once your slideshow is complete. Don Quigg

by sheryl v

I tried the autokeys macro, however, once the slide show starts, even tho the for has key preview turned on, Access no longer has the focus, hence the auto keys doesn't "catch" it. I originally had the Kronos script running from a bat file initiated by a macro. I have since changed it so the script runs from an embedded shortcut-minimized so they can't see/interrupt. i.e., I've given up on PPT show (well sort of... it still bugs/puzzles me). I do appreciate the effort tho! Thanks!

This discussion is closed to new replies.