+ Reply to Thread
Results 1 to 10 of 10

Disable Ctrl Alt Delete in VBA

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Disable Ctrl Alt Delete in VBA

    Hello everybody
    I wonder is there a way to disable ctrl alt delete keys using vba ?
    I think it can be done with VB but in VBA I don't know how..

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: Disable Ctrl Alt Delete in VBA

    I found this code at http://www.freevbcode.com/ShowCode.asp?ID=9449 using the google search engine and it is untested by me.


    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Disable Ctrl Alt Delete in VBA

    I found that piece of code but it didn't work for me
    this line seems to give error
    Please Login or Register  to view this content.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: Disable Ctrl Alt Delete in VBA

    Split the line of code as follows:

    Please Login or Register  to view this content.
    Not sure if this is the answer, but it the first thing I would try.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: Disable Ctrl Alt Delete in VBA

    Reading further (I was curious), I found this link which basically says, Not Possible.

    http://www.codeproject.com/Questions...ALTplusDEL-Key

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Disable Ctrl Alt Delete in VBA

    As for post 2 the code is ineffective at all
    Thanks for trying to help ..
    I will search again perhaps I can find a workaround

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Disable Ctrl Alt Delete in VBA

    Is there a workaround to solve that problem?

  8. #8
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Disable Ctrl Alt Delete in VBA

    Any idea about that? or is it impossible to stop thinking of it?

  9. #9
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Disable Ctrl Alt Delete in VBA

    It's not good practice to mess around with users environment, what if the workbook crashes and needs force closing?

  10. #10
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Disable Ctrl Alt Delete in VBA

    Thanks for advice Mr. Kyle
    It's just curiosity

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Disable CTRL + C, V , X
    By Jack40 in forum Excel General
    Replies: 0
    Last Post: 02-04-2015, 07:37 AM
  2. Disable cut,copy,paste(including ctrl x, ctrl c n ctrl v)
    By Ramboexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2014, 01:00 AM
  3. how to disable ctrl c and ctrl v
    By slmi1313 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2011, 03:04 PM
  4. [SOLVED] Disable CTRL+D???
    By CMIConnie in forum Excel General
    Replies: 0
    Last Post: 02-09-2006, 03:55 PM
  5. [SOLVED] How to disable CTRL key
    By Bon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2005, 06:15 AM

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