Protected sheet - attempt to delete row = unmerged cells


K

Kaz

I have a mixed bag of locked & unlocked cells in a protected sheet.
While testing, I tried to delete a row, which was blocked - this was expected.
But the action unmerged my cells.
Being protected, the user will not be able to re-merge them.

Is there a way to prevent Excel 2002 from unmerging the cells?
 
Ad

Advertisements

D

Dave Peterson

Maybe you could explain what happened.

In xl2003, the option to delete the row was disabled. I couldn't even choose
that action.

What action do you mean?
 
K

Kaz

Hi Dave,

Thanks for the swift reply.

Here are a few descriptions of what I have:

Cells A2:B2 are merged and locked. = filed label
Cells C2:J2 are merged and unlocked. = field entry by user
The entire sheet is protected.
Unlocked calls can enter data only – no formatting allowed and no insert /
delete allowed.

I tested to make sure the protection was working:
Right click row 2.
“Delete†is available in the short-cut menu to click.
On click the pop-up warning about trying to edit a protected sheet does come
up.
However:
The row is not deleted, but all the merged cells become unmerged.
There is no undo available, and the cells can’t be re-merged without first
un-protecting the sheet.
The only option is to close without saving.

I am a contractor and plan to leave this solution with the client and move
on, but, obviously, I don’t want to leave it with this issue.

Is this a bug, or is there an option in tools to set?
Or vba code that prevent the delete / insert option being available at all?

Thanks for the help.
 
D

Dave Peterson

I set up a test worksheet in a new workbook that is laid out the way you
explained.

But when I rightclicked on the row number for row 2, the delete option was
disabled.

A couple of questions...

#1. If you open excel in safe mode
close excel
windows start button|Run
excel /safe
and file|Open your workbook

Do you get the Delete option when you try it?

I'm hoping/guessing that you have a macro that replaces that delete option.

#2. Are you sure you shared the correct layout--no insert and no delete???

And are the ranges that are merged really just a single row?
 
K

Kaz

Hi Dave,

The error is my mistake entirely.
My colleague setup the protection, and she ticked the "delete rows".
I should have checked this before asking this forum.

However, it is your probing that led me to ask her the obvious question, so
all is not lost.

Thank you very much for your help.
K.
 
Ad

Advertisements

D

Dave Peterson

Don't you hate that when that happens?

<vbg>
Hi Dave,

The error is my mistake entirely.
My colleague setup the protection, and she ticked the "delete rows".
I should have checked this before asking this forum.

However, it is your probing that led me to ask her the obvious question, so
all is not lost.

Thank you very much for your help.
K.
 
Ad

Advertisements


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