Userinterfaceonly
Hi Tami
--By default all excel cells are protected. However locking cells has no
effect unless the worksheet is protected.
--Here you are trying to delete a column that contain locked cells. Locked
cells cannot be deleted while the worksheet is protected. (and this is the
message you get while trying to delete a column)
--If you are looking to allow the user to delete columns; then you will need
to unlock the cells before protecting the sheet.
(FormatcellsProtectionLocked)
Hope the above explanasion helps. Have a great week ahead..
If this post helps click Yes
---------------
Jacob Skaria
"Tami" wrote:
i have the following code to allow users to Group and Ungroup and delete
columns in a protected worksheet. can someone tell me what i'm doing wrong.
i got it working with grouping/ungrouping, but when i tried to add the
ability to delete columns it stopped working.
p.s. this is my first time using userinterfaceonly...is there something
risky about it or just a work-around because excel's protected worksheets are
so restrictive in what they allow a user to do?
thanks in advance for any and all advice,
tami
Private Sub Workbook_Open()
With Worksheets("Ladders")
.EnableOutlining = True
.Protect AllowDeletingColumns:=True, Password:="paspas", _
userinterfaceonly:=True
End With
End Sub
|