ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Able to lock few cells in worksheet (https://www.excelbanter.com/excel-discussion-misc-queries/183982-able-lock-few-cells-worksheet.html)

bha_123

Able to lock few cells in worksheet
 
Hi, I want only few cells in my worksheet to be locked using VBA
program. How do i do that?

Thanks,
sur

Dave Peterson

Able to lock few cells in worksheet
 
Record a macro when you unprotect your cells that should be able to be change.
Continue recording when you protect the cells that should not be changed.
Continue recording when you protect the worksheet.

Cell protection is under:
Format|cells|Protection tab

Worksheet protection is under:
tools|Protection|protect sheet

(These are xl2003 menus.)

bha_123 wrote:

Hi, I want only few cells in my worksheet to be locked using VBA
program. How do i do that?

Thanks,
sur


--

Dave Peterson

bha_123

Able to lock few cells in worksheet
 
On Apr 16, 3:49 pm, Dave Peterson wrote:
Record a macro when you unprotect your cells that should be able to be change.
Continue recording when you protect the cells that should not be changed.
Continue recording when you protect the worksheet.

Cell protection is under:
Format|cells|Protection tab

Worksheet protection is under:
tools|Protection|protect sheet

(These are xl2003 menus.)

bha_123 wrote:

Hi, I want only few cells in my worksheet to be locked using VBA
program. How do i do that?


Thanks,
sur


--

Dave Peterson


Thanks a lot..it works.


All times are GMT +1. The time now is 07:09 AM.

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