Prevent Deleting Formulas On The Sheet / Page (delete Key Cancel) Online Excel and Excel Macro (VBA) Courses Copy Macro 'For online Excel courses click: https://www.excelsizeyeter.com/excelwithkenan.com/udemy_giris.php sayfanın kod bölümüne Private Sub Worksheet_Deactivate() Application.OnKey "{del}" End Sub Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.HasFormula Then Application.OnKey "{del}", "" Else Application.OnKey "{del}" End If End Sub Report problem with this macro This macro does not work. There's an error in the code. Other You can write your comments about the error in the box below. Report error ALL MACROS Youtube Channel The following macros may be useful for you. Similar Results NoMacro Name 1 prevent deleting formulas on the sheet / page (delete key cancel) 2 prevent deletion of formulated cells 3 excel operators hk 4 do not delete formulas on the sheet / page (allow others to be deleted) 5 specifies in detail how many formulas are in the book (on new sheet / page) 6 list formulas on new sheet / page 7 and deleting formulas for formulated cells on a sheet / page as comments 8 specify the number of copies to print from the printer 9 prevents sheet / page deletion & naming 10 records detailed formatted cells on the records sheet / page 11 Turkish alphabetical sorting also sorts hidden sheet / pages 12 sheet / page address and set column width 13 Forced to enter password redirects to other sheet / page 14 right mouse on active sheet / page menu 15 assign protection to sheet / page tabs 16 cancel printing in a book 17 excellent menu insert file menu print print preview sheet / page structure remains 18 perfectly deletes the menu to the right mouse and adds print print preview sheet / page structure 19 remove sheet / page protections 20 specifies in detail how many references the book contains (on new sheet / page)