About 24,400 results
Open links in new tab
  1. vba - Lock certain cells in a range - Stack Overflow

    Cells.Select ' unlock all the cells Selection.Locked = false ' next, select the cells (or range) that you want to make read only, ' here I used simply A1 Range("A1").Select ' lock those cells …

  2. Protect certain cells when saving data to excel using R

    Jun 22, 2023 · 0 I want to save my data frame to Excel and protect/ lock certain cells. The function openxlsx::protectWorksheet() protects the entire sheet, and I've found an answer that uses …

  3. Protecting cells in Excel but allow these to be modified by VBA script

    May 29, 2018 · I am using Excel where certain fields are allowed for user input and other cells are to be protected. I have used Tools Protect sheet, however after doing this I am not able to …

  4. excel - How to lock specific cells but allow filtering and sorting ...

    You can unprotect the range as given in the above cells and then add data validation to the unprotected cells to reference something outrageous like "423fdgfdsg3254fer" and then if …

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

    Nov 19, 2012 · I want to stop others from editing the cell contents in my excel sheet using VBA. Is it possible to do this?

  6. excel - Allow Groups to Expand/Collapse While Spreadsheet Is …

    Open the excel file and under Review go to Protect Sheet and make sure to select: Select locked cells Select unlocked cells and in order to expand/colapse the groupings for columns Format …

  7. excel - Using VBA Code to prevent editing in certain cells based …

    Jun 8, 2018 · End Sub Note that I added a check if cell (8, 4) was modified and not any other to prevent unnecessary execution of the code. Note also: As you need the password within the …

  8. excel - VBA to protect and unprotect in given range in sheet

    Sep 25, 2021 · I have applied this macro to protect and unprotect in given range of cells in a sheet here is a problem i am facing in this macro When I run this macro this macro is protecting in …

  9. Locking specific cells in excel VBA - Stack Overflow

    Oct 13, 2017 · The cells which will be locked are in yellow, if there is a date in column L The reason why locking the whole worksheet wont overcome the problem is because any …

  10. excel - Prevent User to edit range of cells manual (but allowing …

    May 23, 2017 · 1 I'd like to prevent the user from being able to editing a certain range of cells. But VBA should keep the ability to do this. So when a button in Excel is pressed VBA should be …