+ Reply to Thread
Results 1 to 2 of 2

How to disable CTRL key

Hybrid View

Guest How to disable CTRL key 12-13-2005, 06:00 AM
Guest RE: How to disable CTRL key 12-13-2005, 06:15 AM
  1. #1
    Bon
    Guest

    How to disable CTRL key

    Dear all

    I am wondering how to disable the Ctrl key. Thus, user can't use
    CTRL+P, CTRL+O,.. etc to trigger build in functions?

    Thanks
    Bon


  2. #2
    Peter Rooney
    Guest

    RE: How to disable CTRL key

    Hi, Bon,

    You don't disable the Ctrl key as such, rather the things that you'd want to
    do with it. here's some code i run when one of my workbooks is opened.

    'Application.OnKey "^{n}", "" 'disable creation of new workbook
    'Application.OnKey "%{F11}", "" 'disable [Shift]+F11 to view code
    'Application.OnKey "%{F8}", "" 'disable [Shift]+F8 to run macros

    the ^ character represents [Control] - hence ^{n} is the same a Control+N
    The % represents [Alt]
    You use + to repesent [Shift]

    When you close the workbook, you can run

    Application.OnKey "^{n}"
    Application.OnKey "%{F11}"
    Application.OnKey "%{F8}"

    to reset the key combinations to their original dunctions.

    Check out the Help on ONKEY

    Hope this helps

    Regards

    Pete




    "Bon" wrote:

    > Dear all
    >
    > I am wondering how to disable the Ctrl key. Thus, user can't use
    > CTRL+P, CTRL+O,.. etc to trigger build in functions?
    >
    > Thanks
    > Bon
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1