3

I've seen an example at this address on how to add context menus by just dropping a key to the registry (in the example, we add one link to Notepad.exe for each file type *).

The example works fine, instantly. However, I don't understand why I can't reproduce the same with "excel.exe %1" under .xla.

Here is a screen of what I tried, initially, "shell" folder seems to be missing for each extension. Since I couldnt get any effect with "shellex", I added it... I can't see my menu :

enter image description here

Please keep in mind I am a registry newbie :)

1 Answer 1

2

Perhaps you are missing a level of indirection here. Normally, .xla will reference a certain file type, e.g. xlafile and the letter in turn will have shell and shellex subkeys referencing context menu handlers.

See:

Sign up to request clarification or add additional context in comments.

3 Comments

I see what you mean but I don't find the proper path... Initially shellex was right under .xla. Does that give us any clue ?
In .xla, I see "Excel.Addin" is tje value for the "default" key, then "application/vnd.ms-excel" is another value, for a second key named "Content Type". What does that tell me ?
So create HKEY_CLASSES_ROOT\Excel.Addin\shell\Close key and populate it. You should see the new item "Close" under .xla's context menu.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.