Link to home
Start Free TrialLog in
Avatar of HeitmanProgrammers
HeitmanProgrammers

asked on

Disable "New" in Excel Toolbar in VB .NET

Programmatically, using VB .NET, I can disable File > New in Excel.  However I am having trouble disabling "New" in the toolbar. How can I do that? Also how can I disable Ctrl + N? I tried Application.OnKey("^N", "") but it doesn't work.
Avatar of HeitmanProgrammers
HeitmanProgrammers

ASKER

I only want to disable for the workbook that I am on. Not for the whole application.
ASKER CERTIFIED SOLUTION
Avatar of armoghan
armoghan
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I can disable it however it disables on the whole application. I only want to disable it for the current workbook. Also, I need to disable "New" from the toolbar (toolbar with all the shortcurts).