how to lock any specified column or row in excel or through vba??
I don't require any splitting / freezing panes.
If locked, user should not able to edit/delete any of the cells of locked column or row.
how to lock any specified column or row in excel or through vba??
I don't require any splitting / freezing panes.
If locked, user should not able to edit/delete any of the cells of locked column or row.
1. Select al cells, click Format > Cells > Protection tab and uncheck the Locked tab.
2. Slecte the cells / columns / rows which you want to lock. Go to Format > Cells > Protection tab and check the Locked tab.
3. Now go to Tools > Protection > Protect sheet. You may supply a password if needed.
Mangesh
mangesh, thanku once again
Thanks for the feedback.
Mangesh
HTH. Best wishes Harald![]()
Sub Test() With Sheets(2) ..Cells.Locked = False ..Columns("C:C").Locked = True ..Protect End With End Sub
"ilyaskazi" <ilyaskazi.1q1mab_1117789527.3772@excelforum-nospam.com> skrev i
melding news:ilyaskazi.1q1mab_1117789527.3772@excelforum-nospam.com...
>
> how to lock any specified column or row in excel or through vba??
>
> I don't require any splitting / freezing panes.
>
> If locked, user should not able to edit/delete any of the cells of
> locked column or row.
>
>
> --
> ilyaskazi
> ------------------------------------------------------------------------
> ilyaskazi's Profile:
http://www.excelforum.com/member.php...o&userid=23969
> View this thread: http://www.excelforum.com/showthread...hreadid=376228
>
Last edited by Cutter; 08-28-2012 at 12:41 PM. Reason: Added code tags
Add rows to Haralds code:
MIke F![]()
Sub Test() With Sheets(2) ..Cells.Locked = False ..Columns("C:C").Locked = True ..Rows(2:6).Locked = True ..Protect End With End Sub
"ilyaskazi" <ilyaskazi.1q1mab_1117789527.3772@excelforum-nospam.com> wrote
in message news:ilyaskazi.1q1mab_1117789527.3772@excelforum-nospam.com...
>
> how to lock any specified column or row in excel or through vba??
>
> I don't require any splitting / freezing panes.
>
> If locked, user should not able to edit/delete any of the cells of
> locked column or row.
>
>
> --
> ilyaskazi
> ------------------------------------------------------------------------
> ilyaskazi's Profile:
> http://www.excelforum.com/member.php...o&userid=23969
> View this thread: http://www.excelforum.com/showthread...hreadid=376228
>
Last edited by Cutter; 08-28-2012 at 12:40 PM. Reason: Added code tags
Hi all, I'm facing a similar problem...how to disable editing or protect only a specified column..
i'm getting error..
don know what to do..
help me pls
Hello SathishKumar, and welcome to the forum.
Unfortunately you have inadvertently broken one of the forum rules. Please read the following and make the necessary change. Thanks.
Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks