Create automatically override function?
Fri, 12/04/2020 - 12:49 pm
I have function which the user needs to modify in order to get some functionality. In order to keep this as simple (for USER) as possible, I am hoping to have button, which will open main procedure window and type in
I have the function UserHookFunction defined in the code, but need to give user chance to use modified version they want to use. I have no expectations of user high profiency, but the function is pretty simple and most can modify it.
Normally I would open notebook and provide the template and instructions, but it would be nicer to give them the template, with the override keyword, in the main procedure window and open this all for them.
Is this possible? I can get the function text with:
ProcedureText(macroOrFunctionNameStr [, linesOfContext [, procedureWinTitleStr ]])
But then I run out of ideas. DoWIndow /F Procedure does not work and do not know how to paste there anything anyway.