Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 325
Default Disable Shortcut Menus / Alt-F8

Good afternoon, all!

As another afternoon winds its way to a close in sunny Lytham St Annes, just
a couple of tidyups to tie up this week's system once and for all.

Is there any way in which shortcut menus can be disabled, to prevent users
from inserting and deleting rows and columns, after I've spent so much time
customizing the menu bar to prevent this?

Also, is it possible to disable Alt-F8 to stop them running macros and
breaking everything?

Thanks in advance and have a good weekend

Regards

Pete


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Disable Shortcut Menus / Alt-F8

You can use the OnKey method to disable any keystroke. For instance this
disables Ctrl-a:

Application.OnKey "^a", ""

See Help for more on OnKey.

You can do the same to Alt-F8 but you might just want to block your macro
names from appearing in the Macros dialog by adding Option Private Module at
the top of each module

--
Jim
"Peter Rooney" wrote in message
...
Good afternoon, all!

As another afternoon winds its way to a close in sunny Lytham St Annes,
just
a couple of tidyups to tie up this week's system once and for all.

Is there any way in which shortcut menus can be disabled, to prevent users
from inserting and deleting rows and columns, after I've spent so much
time
customizing the menu bar to prevent this?

Also, is it possible to disable Alt-F8 to stop them running macros and
breaking everything?

Thanks in advance and have a good weekend

Regards

Pete




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 325
Default Disable Shortcut Menus / Alt-F8

Jim,

Thanks VERY much for the "Option Private Module" statement.
It's just what I needed.
Just the ShortCut menus to go now.

Have a good weekend

Pete




"Jim Rech" wrote:

You can use the OnKey method to disable any keystroke. For instance this
disables Ctrl-a:

Application.OnKey "^a", ""

See Help for more on OnKey.

You can do the same to Alt-F8 but you might just want to block your macro
names from appearing in the Macros dialog by adding Option Private Module at
the top of each module

--
Jim
"Peter Rooney" wrote in message
...
Good afternoon, all!

As another afternoon winds its way to a close in sunny Lytham St Annes,
just
a couple of tidyups to tie up this week's system once and for all.

Is there any way in which shortcut menus can be disabled, to prevent users
from inserting and deleting rows and columns, after I've spent so much
time
customizing the menu bar to prevent this?

Also, is it possible to disable Alt-F8 to stop them running macros and
breaking everything?

Thanks in advance and have a good weekend

Regards

Pete





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I disable pre-loaded shortcut? Apoonsi Excel Discussion (Misc queries) 1 July 3rd 08 06:33 PM
Can I DISABLE a shortcut key? CMIConnie Excel Discussion (Misc queries) 4 April 14th 06 07:14 PM
menus & Commandbars disable when double click on cell/formula bar helpme Excel Programming 0 March 11th 05 04:19 AM
Disable Shortcut Keys Ronbo Excel Programming 1 May 25th 04 03:12 PM
disable menus on opening Excel Dave[_17_] Excel Programming 0 July 16th 03 11:23 PM


All times are GMT +1. The time now is 06:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"