HarryMiller

Create an Excel Shortcut Menu That Writes Selections to a Text File

Download this episode

Download Video

Description

It doesn't take much code to add a command to a shortcut menu in Excel, but the menu objects have strange names so it's not intuitive, to me at least. The trickiest part is just sorting out how it's supposed to work, because it seems like it should be different from adding buttons to toolbars, but it really looks like that's what you're doing.

The code is all posted in this post on the VSTO team blog.

Thanks to McLean Schofield, programmer/writer and 3-star forum answer person, for this code example!

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.