LOCK THE CELLS

K

K

Hi, I want a macro that if I try to activate cell or try to select
any cell in Range("C1:D10")
then cell "A1" should be selected or get activate. Basically I am
trying to lock the Range("C1:D10") that
if I or someone else select any cell in Range above then cell "A1"
should get selected
like this nothing can be edit in Range above. I hope I explained what
I am trying to
say. Please if anybody can give me help in this.
 
N

Nigel

Take a look at setting the Protection on the cell range then protecting the
sheet and workbook. You can choose if the user can select or not the
protected cells.

If you in addition you also need to move the cursor to Cell A1 then put a
selection event in the worksheet code.
 
K

K

Take a look at setting the Protection on the cell range then protecting the
sheet and workbook.  You can choose if the user can select or not the
protected cells.

If you in addition you also need to move the cursor to Cell A1 then put a
selection event in the worksheet code.

--

Regards,
Nigel
(e-mail address removed)






- Show quoted text -

do you know how what should i do to protect the range of cell as i am
using Excel 2007
 
N

Nigel

Select cells, right click choose Format Cells, select Protection tab, check
Locked.

Then right click sheet tab, choose Protect Sheet, and set level of access,
enter password if required.

--

Regards,
Nigel
(e-mail address removed)



Take a look at setting the Protection on the cell range then protecting
the
sheet and workbook. You can choose if the user can select or not the
protected cells.

If you in addition you also need to move the cursor to Cell A1 then put a
selection event in the worksheet code.

--

Regards,
Nigel
(e-mail address removed)






- Show quoted text -

do you know how what should i do to protect the range of cell as i am
using Excel 2007
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top