Visio Guy

Visio Discussions => Programming & Code => Topic started by: Visisthebest on April 30, 2021, 01:51:47 PM

Title: Custom shortcut keys for a Visio add-in
Post by: Visisthebest on April 30, 2021, 01:51:47 PM
For a VBA solution, it is quite straightforward to set custom shortcut keys for macros in the solution.

What is the best way to set custom shortcut keys for subs/functions in a VB.NET Visio add-in?

Thank you for your help!
Title: Re: Custom shortcut keys for a Visio add-in
Post by: Paul Herber on April 30, 2021, 04:40:04 PM
It's Visio that can associate a key press with a VBA macro. That can't happen with an addin, but the ribbon can interpret key presses.

http://howtomicrosoftofficetutorials.blogspot.com/2017/08/use-keyboard-to-work-with-ribbon.html (http://howtomicrosoftofficetutorials.blogspot.com/2017/08/use-keyboard-to-work-with-ribbon.html)
Title: Re: Custom shortcut keys for a Visio add-in
Post by: Visisthebest on April 30, 2021, 06:06:53 PM
Thank you Paul that is good to know!