I wanted to add Macro-enabled workbook to the New context menu in Windows.
I've seen How can I add an item to the 'new' context menu?. But merely adding the following doesn't work:
Nor does using a string value of
"FileName"="xlsm.xlsm" instead of
It gives the usual invalid extension error:
Excel cannot open the file 'filename.xlsx' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.
Using anything other value data for
xlsm.xlsm (such as
excel_macro_enabled.xlsm) doesn't create a new context menu entry at all.
I looked at the
ShellNew key inside
.xlsx, to see what the string value for new excel workbook was, and I tried creating a similar string value:
That gave me the same invalid extension error.
So, how do I create a new context menu entry for macro-enabled workbook by editing the registry?
Excel.SheetMacroEnabled.12 key was already present inside