ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Protect - Certain Rows / Columns (https://www.excelbanter.com/excel-programming/370322-protect-certain-rows-columns.html)

RigasMinho

Protect - Certain Rows / Columns
 
In excel you can protect the whole worksheet to be protected.

Is there a way to protect only certain rows / columns?

I dont want to do the cell protection because that would take too long.

What would be nice is to protect columns a-e and let the users do what
they want for the rest of the sheet.


RigasMinho

Protect - Certain Rows / Columns
 

RigasMinho wrote:
In excel you can protect the whole worksheet to be protected.

Is there a way to protect only certain rows / columns?

I dont want to do the cell protection because that would take too long.

What would be nice is to protect columns a-e and let the users do what
they want for the rest of the sheet.


Never mind - i figured it out.

i would have to select the cells first and lock the ones i want to be
protected.

then i would have to unlock the ones i dont want to be protected.


Tom Ogilvy

Protect - Certain Rows / Columns
 
Range("A:E").Cells.Locked = True
Range("F:IV").Cells.Locked = False
Activesheet.Protect Password:="ABC"

--
Regards,
Tom Ogilvy


"RigasMinho" wrote:

In excel you can protect the whole worksheet to be protected.

Is there a way to protect only certain rows / columns?

I dont want to do the cell protection because that would take too long.

What would be nice is to protect columns a-e and let the users do what
they want for the rest of the sheet.




All times are GMT +1. The time now is 12:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com