Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VB run-time error '457' when opening Preferences #25

Open
IvoKrab opened this issue Jun 12, 2024 · 2 comments
Open

VB run-time error '457' when opening Preferences #25

IvoKrab opened this issue Jun 12, 2024 · 2 comments

Comments

@IvoKrab
Copy link

IvoKrab commented Jun 12, 2024

Hi,

With the latest "Word16" template PlantUML_Template_v35.dotm in Microsoft 365 Word I'm getting a VBA error when trying to open the Preferences on the PlantUML tab:

Run-time error '457':
This key is already associated with an element of this collection

As usual the message is "very helpful", not specifying which key of which collection is the culprit...

Any ideas what conflict might be happening here and how to fix it?

@LilMouse
Copy link

I get the same error but it seems to have something to do with OneDrive for me.
If I put the Word document (so not the template but the working document) file in OneDrive I get this error.
But if I put the file anywhere else it works fine.

@IvoKrab
Copy link
Author

IvoKrab commented Sep 23, 2024

Thanks for the pointer @LilMouse, indeed I saw the problem with a SharePoint document, and when I download the file to a not-OneDrive/Sharepoint-"managed" location I can access the setting. This is an unfortunate limitation, because I'm not sure settings are "per-file", or general "per-Word-installation". Possibly there is a properties name conflict between the plantUML "per-file" option and some SharePoint/OneDrive option that happens to have the same name.

Anyway, now that I was again able to access them, I note that the options are very limited (VectorGraphics on/off, and FTP settings which I don't need/see the use of).

Since I'm not sure about the stability of including big diagrams directly in a big Word document, I'll probably opt for generating the diagrams externally from separately stored source files and including the images in the Word doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants