MS Visio 2013 vs 2016 (VBA)

Started by Ralli, June 05, 2018, 05:18:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ralli

Hello,

I wrote a macro under Visio 2016 which is called via the ShapeSheet of the drawing sheet.
Works great.

Attempting to call the macro this way in Visio 2013 fails.
If I start the macro manually in the VBA editor it works.

Attempting to call the ShapeSheets for the drawing sheet by right-clicking (no entry appears here) or using the developer tools (entry ShapeSheet is shown here in gray) fails.

Does anyone have any idea where the mistake might lie?
So far I was of the opinion that the changes 2013/ 2016 are only limited to design changes or touch adjustments...

Thanks a lot
Ralph

Surrogate

As I know Visio 2016 & 2013 have few differences. But they have same VBA and shapesheet environments!

Please share more details:
You can run document in Visio 2013 as is?
Or copy/paste shapes and VBA code in document, which opened in Visio 2013?

Ralli

#2
As I said, the document and the macro were created under Visio 2016.
The macro only changes text in named shapes by entering free text or by using dropdown.
Instead of call the macro with a button, i use the shapesheet with contextmenu (runmacro) .. because i want to execute the macro on copied sheets.

The document is opened successfully on another PC (as a template, dwt) with Visio 2013, but you do not have access to the ShapeSheet of the document (gray highlighted).
The context menu with the new entry is shown but does not work.
Starting the macro in the VBA editor then works again without problems.