+ Reply to Thread
Results 1 to 2 of 2

How to disable keys at opening the spreadsheet?

  1. #1
    Registered User
    Join Date
    02-21-2020
    Location
    Wroclaw, Poland
    MS-Off Ver
    2019
    Posts
    2

    How to disable keys at opening the spreadsheet?

    Hi! I faced a problem with my VBA worksheet.

    I have some data that needs to be updated by other users, but I have to ensure that no data is mistakenly erased. Therefore, I thought of disabling the delete and backspace keys.
    However, the macro works only when I run it using F8 and cannot find a way to run it at opening the whole spreadsheet.

    I tried writing the code immediately after starting the script. Then I thought of calling another macro, but it does not work, either. Currently, the code looks like this:

    Please Login or Register  to view this content.
    Next thing to say is that I am a real novice to VBA and really count on someone's help!
    Last edited by phraesie; 02-21-2020 at 12:56 PM.

  2. #2
    Registered User
    Join Date
    02-21-2020
    Location
    Wroclaw, Poland
    MS-Off Ver
    2019
    Posts
    2
    Okay, I found a solution to my query. It's enough to use Auto_Open instead of Workbook_Open at the very beginning.

+ 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. [SOLVED] Disable keys in combobox
    By DMA in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2020, 12:01 PM
  2. [SOLVED] disable alt and control shortcut keys
    By jhahes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2016, 01:44 PM
  3. How to disable function keys
    By fraz627 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2014, 07:34 AM
  4. Disable arrow keys in a userform
    By Khaos176 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2009, 02:07 PM
  5. Replies: 4
    Last Post: 08-27-2007, 01:51 AM
  6. Disable CUT via toolbars or shortcut keys
    By sparx in forum Excel General
    Replies: 0
    Last Post: 04-30-2006, 03:34 PM
  7. Disable F Keys
    By David Steed in forum Excel General
    Replies: 2
    Last Post: 12-08-2005, 06:15 PM

Tags for this Thread

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