About 2,310,000 results
Open links in new tab
  1. How to Protect Specific Columns Using VBA in Excel

    Aug 9, 2024 · You can protect specific, or multiple, active columns and rows in Excel by using simple and short VBA macros.

  2. How to Lock the data in a cell in excel using vba

    Nov 19, 2012 · You can first choose which cells you don't want to be protected (to be user-editable) by setting the Locked status of them to False: Then, you can protect the sheet, and …

  3. Automatically Lock Certain Cells in Excel using a Macro

    Lock Cell in a Specific Column or Row. To limit the locking to a certain column or row, change the IF statement. Limit to a row: If Target.Row = 1 And Target.Value <> "" Then Change the 1 to …

  4. VBA Lock Statement - Explained with Examples

    Sep 28, 2023 · In this post, we will discuss the purpose, syntax, examples, important notes and remarks of the VBA Lock statement and how it can be used to enhance data security and …

  5. Worksheet.Protect method (Excel) | Microsoft Learn

    Jul 11, 2022 · Protects a worksheet so that it cannot be modified. expression.

  6. Lock and protect selected excel rows with VBA code [SOLVED]

    Apr 13, 2015 · Hi Gurus, I've an excel worksheet with sama data to be protected and some data to be updated by our users on a regular basis. My query is, will it be possible to use VBA code …

  7. VBA to lock rows based on any input of a specific column

    Jun 2, 2021 · Hi all, I am looking for a VBA code which can lock the rows from column K to P based on any input of the same row's column J. I would want the row to lock once any info is …

  8. Lock rows in Excel using VBA - Stack Overflow

    Jun 27, 2014 · Enter the following Event macro in the worksheet code area: Dim N As Long. N = Target.Row. If Intersect(Target, Range("G:G")) Is Nothing Then Exit Sub. If Target.Text <> …

  9. VBA Code to Protect and Unprotect a range of cells based on …

    Oct 31, 2024 · Let's say you want to apply this to rows 2 to 30. Right-click the sheet tab and select View Code from the context menu. Copy the code listed below into the worksheet module. …

  10. Excel VBA to Protect Range of Cells (3 Examples) - ExcelDemy

    Jul 16, 2024 · Copy the VBA code below and paste it into a VBA module. Sub Protect_Formula_Cells() For Each cell In ActiveSheet.Range("B4:E8") If cell.HasFormula …

  11. Some results have been removed