Avatar of Roger
RogerFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

automating Drop vsoSelection to vss file. vsoDoc1.Save '.... leads to MS warning box: "requested operation is presently disabled"

I'm trying to 'polish' the saving of a selected shape to an existing vss file that starts undocked.

I select some shapes:
vsoSelection1.Select MyShape, visSelect
which I wish to drop into vsoDoc1, an undocked vss file:

Set vsoDoc1 =Visio.Documents.OpenEx("C:\Users\Roger\Documents\MyShapes\ExportFromUserFile.vss", visOpenDocked + visOpenCopy)

'the selection is dropped, and then deleted from vst:    
vsoDoc1.Drop vsoSelection1, 0, 0
vsoSelection1.delete
'I want to save and close vsoDoc1, but:    
vsoDoc1.Save '.... leads to MS warning box: "requested operation is presently disabled"
vsoDoc1.Close

Can you please  show me how to save vsoSelection1 to  the named vsoDoc1:
avoiding: MS warning box: "requested operation is presently disabled". Indications of safe practice would be appreciated.

I also need to suppress the Microsoft security dialogue boxes that ask if macros should be enabled or disabled (I need my project macros enabled, and my project vss files accessible). This has security implications. Can you indicate how I should commence understanding my options and asking about best practice?  

Thanks in advance
Kelvin
Microsoft Visio

Avatar of undefined
Last Comment
Roger
ASKER CERTIFIED SOLUTION
Avatar of Chris Roth
Chris Roth
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Roger
Roger
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Thanks: it was a vague question, but your response was helpful and I learned from it.
Kelvin
Microsoft Visio
Microsoft Visio

Visio is a diagramming and vector graphics application that is part of the Microsoft Office family that allows the user to create diagrams for organizational and planning purposes. The Premium edition has additional templates for more advanced diagrams and layouts, as well as capabilities intended to make it easy for users to connect their diagrams to data sources and to display their data graphically, as well as intelligent rules, validation, subprocess (diagram breakdown). one-step connectivity with Excel data, information rights management (IRM) protection for Visio files, modernized shapes for office layout, detailed shapes for site and floor plans, modern shapes for home plans, and IEEE compliant shapes for electrical diagrams.

2K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo