J
John
Hi there, this follows on from some advice from Mark Nelson in an earlier
post ("Reset Dynamic Connectors").
I'm trying to set a dynamic connector to return to its original curved state
using Application.DoCmd(visCmdConnectorEffectCurved).
The trouble is I'm getting a "Requested operation is presently disabled"
error on this line. You then click on Debug and press F8 to execute the
line again and it suddenly works ok!
Any clues as to what's going on and how I can avoid this error?
(I'm using Visio Standard v11)
The code is as follows:
Dim vsoSelection1 As Visio.Selection
Set vsoSelection1 = pag.CreateSelection(visSelTypeByLayer, _
visSelModeSkipSuper, "Connector")
Application.ActiveWindow.Selection = vsoSelection1
Application.DoCmd (1945) 'visCmdConnectorEffectCurved
Best regards
John
post ("Reset Dynamic Connectors").
I'm trying to set a dynamic connector to return to its original curved state
using Application.DoCmd(visCmdConnectorEffectCurved).
The trouble is I'm getting a "Requested operation is presently disabled"
error on this line. You then click on Debug and press F8 to execute the
line again and it suddenly works ok!
Any clues as to what's going on and how I can avoid this error?
(I'm using Visio Standard v11)
The code is as follows:
Dim vsoSelection1 As Visio.Selection
Set vsoSelection1 = pag.CreateSelection(visSelTypeByLayer, _
visSelModeSkipSuper, "Connector")
Application.ActiveWindow.Selection = vsoSelection1
Application.DoCmd (1945) 'visCmdConnectorEffectCurved
Best regards
John