Hi, I am using XL 2000 and am trying to prevent users from choosing Insert-Rows from the toolbar menu for a specific workbook. I don't want to protect the workbook so I am trying to write code. What I have doesn't seem to work. Can someone correct?
This code is in ThisWorkbook
Sub DisableInsertRows()
With Application.CommandBars("Insert").Controls
.Item("Rows").Enabled = False
End With
End Sub
Thanks in advance,
MikeL
This code is in ThisWorkbook
Sub DisableInsertRows()
With Application.CommandBars("Insert").Controls
.Item("Rows").Enabled = False
End With
End Sub
Thanks in advance,
MikeL