+ Reply to Thread
Results 1 to 2 of 2

Completely disable ctrl key?

Hybrid View

  1. #1
    Registered User
    Join Date
    01-25-2006
    Posts
    10

    Completely disable ctrl key?

    Is there a way to completely disable the Ctrl key?
    I understand i can use code such as ".OnKey "^c" to disable Ctrl+C. But what I'm after is completely disabling the ctrl, without having to define every key combination.

    Basically, I'm trying to prevent users from highlighting a range of cells and using ctrl+Enter to fill the highlighted range.
    .OnKey "+{Enter}", "Warning"
    Will trigger my msgbox box warning sub, but still allows the user to fill the highlighted range.

    Can anyone help me make my code more robust?

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Quote Originally Posted by mcgrad
    Is there a way to completely disable the Ctrl key?
    I understand i can use code such as ".OnKey "^c" to disable Ctrl+C. But what I'm after is completely disabling the ctrl, without having to define every key combination.

    Basically, I'm trying to prevent users from highlighting a range of cells and using ctrl+Enter to fill the highlighted range.
    .OnKey "+{Enter}", "Warning"
    Will trigger my msgbox box warning sub, but still allows the user to fill the highlighted range.

    Can anyone help me make my code more robust?
    Hi mcgrad,
    Do you want the user not to be able to edit a range of cells?
    Have you considered protecting the sheet?

+ 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