A
AA Arens
Is it possible to make pasting not allowed (the cells are un-locked,
but the sheet is protected)?
Bart
Excel 2003
but the sheet is protected)?
Bart
Excel 2003
I missed that one, in fact just thought of it this morning.
There are three command bars - Cell, Column, and Row - that contain the
right-click menu options. You can disable those, to prevent any kind
of right-click menu showing:
.CommandBars("Cell").Enabled = False
.CommandBars("Column").Enabled = False
.CommandBars("Row").Enabled = False
... or you can do the same as we did with the Edit menu toolbar, where
you only disable the Cut, Copy, and Paste controls:
With .CommandBars("Cell")
.Controls("Copy").Enabled = False
.Controls("Cut").Enabled = False
.Controls("Paste").Enabled = False
.Controls("Paste Special...").Enabled = False
End With
With .CommandBars("Column")
.Controls("Copy").Enabled = False
.Controls("Cut").Enabled = False
.Controls("Paste").Enabled = False
.Controls("Paste Special...").Enabled = False
End With
With .CommandBars("Row")
.Controls("Copy").Enabled = False
.Controls("Cut").Enabled = False
.Controls("Paste").Enabled = False
.Controls("Paste Special...").Enabled = False
End With
Whatever you choose to do, don't forget to do the opposite to re-enable
on BeforeClose or Deactivate.
"""AAArensпиÑал(а):
"""
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.