Disable all Office menu items (except 1)?

D

David Thielen

Hi;

You're going to love this question :)

Ok, we want to have a tutorial where we have a window telling the user
what to do and we disable everything in Word except that one thing. So
we say "insert a table" and all tabs except insert are disabled and
insert is pulsing (changing colors slowly).

And on the insert ribbon the same thing - all disabled except Table
and Table is pulsing.

And we want to do this in Office 2003 & 2007.

I have a bad feeling the answer is no way. But it never hurts to
ask...

thanks - dave


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
C

Cindy M.

Hi David,
Ok, we want to have a tutorial where we have a window telling the user
what to do and we disable everything in Word except that one thing. So
we say "insert a table" and all tabs except insert are disabled and
insert is pulsing (changing colors slowly).

And on the insert ribbon the same thing - all disabled except Table
and Table is pulsing.

And we want to do this in Office 2003 & 2007.

I have a bad feeling the answer is no way. But it never hurts to
ask...
I don't think you're going to be able to realize the "Insert is pulsing"
part of this. You don't get any control of the colors in that part of
the UI (CommandBars / Ribbon).

For the rest...

Office 2003, maybe, but truly disabling commands would *require* VBA
macros "intercepting" the built-in commands. A macro named the same as a
command will execute instead of the command; FileSave for example.
Caveat: commands being executed from within a built-in task pane don't
follow the rules.

You can certainly disable / make invisible all CommandBar objects.

Office 2007: very tricky as the philosophy behind the Ribbon is that an
outside developer should not be able to lock out the user. Some of the
very basic commands in the Office Button menu are "protected", and you
can't disable or hid that button. You can use "start from scratch" to
suppress everything in the UI except that menu (including the QAT). Many
of the commands in the menu can be disabled by setting that attribute in
the <commands> section of the Ribbon, but I think there are one or two
exceptions (ones that will allow the user to "recover" the application
UI - since it does belong (literally) to him and not to "you").

And, unlike in previous versions, this won't affect the keyboard
shortcuts to commands. Which means you'd also need to go through that
collection and disable those, where possible. (And/Or use the same VBA
modules as in 2003 for most commands.)

From what I've seen, generally, in tutorials over the years, most end up
making a mock-up of the Office app UI with limited hot-spots. If you
click elsewhere, nothing happens. Doing the right thing brings up the
next mock-up.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
J

Jie Wang [MSFT]

Hi David,

I agree with Cindy, it will be easier and cleaner (no potential impact on
users' real working Office environment) to make a tutorial using
Silverlight or Flash than struggling with the real Office UI.

Best regards,

Jie Wang

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top