Avatar of Kelvin4
Kelvin4
 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
Kelvin4

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Chris Roth

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Kelvin4

ASKER
Thanks: it was a vague question, but your response was helpful and I learned from it.
Kelvin
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy