I want to disable short-cut "ctrl+s" in excel.. I use: Application.OnKey("^s", ""); But I want to activate again this chort cut.
Application.OnKey have 2 parameters, string key and object procedure.. For reactivate short cut must second parameter to be omissed. Parameter is optional but in C# not exist overload of this method and must specified both parameters. I try with Application.OnKey("^s", null) but not working.

Re: Visual Studio Tools for Office Application.OnKey

Cindy Meister

Have you tried with System.Type.Missing That's the correct way to pass missing optional parameters.