This code doesn't work for some reason. I get a a runtime error "Invalid procedure or argument"
Sub disablemenutitems()
With Application.commandbars("Proposal").Controls
.Item("Enter/Edit Invoice Data...").Enabled = False
End With
End Sub
Sub enablemenuitems()
With Application.commandbars("Proposal").Controls
.Item("Enter/Edit Invoice Data...").Enabled = True
End With
End Sub
These two subs work fine if I use "File" in place of "Proposal" and "Print..." in place of "Enter/Edit Invoice Data...".
NL
Sub disablemenutitems()
With Application.commandbars("Proposal").Controls
.Item("Enter/Edit Invoice Data...").Enabled = False
End With
End Sub
Sub enablemenuitems()
With Application.commandbars("Proposal").Controls
.Item("Enter/Edit Invoice Data...").Enabled = True
End With
End Sub
These two subs work fine if I use "File" in place of "Proposal" and "Print..." in place of "Enter/Edit Invoice Data...".
NL