Author Topic: Keyboard shortcuts for macro not working with save options in external file  (Read 4113 times)

0 Members and 1 Guest are viewing this topic.

aitken

  • Newbie
  • *
  • Posts: 2
Hi, gurus, please help me with my problem
I want to create macros with macro recorder, assign it to keyboard shortcut and save to external file. When I create macros 3 options of saving option is available:
1) Active document
2) ARROW_M.VSS
3) EPC_M.VSS
When I use save option -   1) Active document, my macros works good, I can run it from menu and keyboard shortcuts.
But when use save options - 2) ARROW_M.VSS , 3) EPC_M.VSS - my macros can run only from menu, it doesn't work through keyboard shortcuts.

So I need the way to save macros in external file, and use it with different workbooks. And also,I need to run my macros through keyboard shortcut.
In Ms Excel, I saved macros in Personal.xlsb for my purposes and everything was good.

 I use MS Visio 2010. Thank you for you suggestions ))
« Last Edit: July 14, 2014, 12:38:25 AM by aitken »

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
I think 2) and 3) are protected against saving.
Why do you need to save?
Best Regards,

Junichi Yoda
http://june.minibird.jp/

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2933
    • Paul Herber's website
Macros can only be saved within Visio documents, templates or stencils. A stencil would probably be your best option. You can create your own stencil file from the More Shapes menu. There is no equivalent of Excel's personal.xlsb file.

Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

Yacine

  • Hero Member
  • *****
  • Posts: 2703
Hi,
I found a post very similar to your's:
http://visguy.com/vgforum/index.php?topic=5424.0

and some furhter reading here:
http://visguy.com/vgforum/index.php?topic=755.0

So basically, you need to keep the shortcuts in the drawing (by starting your drawings from an appropriate template). The code can still be in a stencil.
« Last Edit: July 15, 2014, 12:44:43 AM by Yacine »
Yacine

aitken

  • Newbie
  • *
  • Posts: 2
Thank you , for your replying. I solved my problem. I decided to use a quick access toolbar and Alt + ... keyboard shortcuts.