Link to home
Start Free TrialLog in
Avatar of LeTay
LeTay

asked on

Cells protection in Excel

I have prepared a customer's spreasheet where columns H,I and J are protected (contain repetitive formula, line by line)
I want the customer to be able to replicated lines : at the beginning, lines 1 to N are used, but I want my customer able to copy line N to line N+1 if needed etc...
Is this achievable without unprotecting these columns ?
Avatar of Roy Cox
Roy Cox
Flag of United Kingdom of Great Britain and Northern Ireland image

I would normally suggest a Table, but they don't work with sheet protection on. You can set Formulas and Formats to copy down in Excel Options, this might work.

File -> Excel Options -> Advanced. The sixth CheckBox down in Editing Options.

User generated image
You may be better off protecting cells using the UnserInterfaceOnly setting of the Protect method. For example:
Sheets("Sheet3").Protect UserInterfaceOnly:=True

See this MSDN article for details.
Does the workbook add the lines using VBA?
Avatar of LeTay
LeTay

ASKER

No, the user just copy/paste the entire last line
Have you tried my suggestion?
Avatar of LeTay

ASKER

Options are already cheched like the one you suggest
It does not change the behavior, not possible to copy/paste a line ...
ASKER CERTIFIED SOLUTION
Avatar of Roy Cox
Roy Cox
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial