This will disable/enable the “delete” and “delete sheet “part form the “Edit “position on “the menu bar”.
Howdoes one disable/enable the command on the “sheet tab” that gives the same result?
How figured that on out yet?
I could do with some help.
Thanks
Jan
Sub test1()
‘write down the exact notation in the menu that you want to disable/enable
‘from the left (2) Edit then (12)downwards Delete sheet
‘I think it is language sensitive so you need to put it in English USA
‘this is only for the menu not ok when klicking the sheettab
CommandBars(“Worksheet Menu bar”).Controls(“Bewerken”).Controls(“Verwijderen…”).Enabled = False
CommandBars(“Worksheet Menu bar”).Controls(“Bewerken”).Controls(“Blad verwijderen”).Enabled = False
MsgBox (“verder gaan”)
CommandBars(“worksheet Menu bar”).Controls(“Bewerken”).Controls(“Blad verwijderen”).Enabled = True
‘
CommandBars(“Worksheet Menu bar”).Controls(“Bewerken”).Controls(“Verwijderen…”).Enabled = False
CommandBars(“Worksheet Menu bar”).Controls(“Bewerken”).Controls(“Verwijderen…”).Enabled = True
End Sub