cristianbuse / VBA-UserForm-MouseScroll

Use the Mouse Scroll Wheel to scroll VBA UserForms and Controls
MIT License
70 stars 12 forks source link

如果两个含有此模块的宏同时运行时会发生错误 未知的错误:35010 #43

Closed Jerry-1984 closed 2 months ago

Jerry-1984 commented 2 months ago

我在CorelDRAW中使用这个宏模块,如果两个含有此模块的宏同时运行时会发生错误 未知的错误:35010 然后这两个宏就再也无法启动了,点击就弹出错误35010 I use this module in CorelDRAW,If two macros containing this module run simultaneously, an error will occur Unknown error: 35010 Then these two macros can no longer be started, and attempting to launch them will prompt error 35010

cristianbuse commented 2 months ago

Hi @Jerry-1984 ,

Are there 2 separate instances of the CorelDRAW application? Or, within the same application, you have 2 separate drawing projects, each having it's own code modules?

Jerry-1984 commented 2 months ago

Hi @Jerry-1984 ,

Are there 2 separate instances of the CorelDRAW application? Or, within the same application, you have 2 separate drawing projects, each having it's own code modules?

Multiple macro plugins can be run simultaneously in the same CorelDRAW application, each with its own module. As shown in the figure 7 8

cristianbuse commented 2 months ago

@Jerry-1984 ,

In Excel, the MouseScroll module can be used inside an add-in (see here) and then all projects can just call the add-in using Application.Run "EnableMouseScroll", Me. Meaning only the add-in needs to have the MouseScroll module and all the other projects do not have it.

However, I have no idea if you can have add-ins in CorelDRAW. Is this something you can check and let me know? Thanks!

Jerry-1984 commented 2 months ago

I don't know how to create an addin in CorelDRAW Now I have merged the two macro plugins into one, and the problem seems to have been temporarily resolved. thank you!

cristianbuse commented 2 months ago

Thank you @Jerry-1984 ,

I will keep this issue in mind and if I ever have time I might implement some workarond.