I have Select Same v3 running on one win10PC CorelDRAW2021 but will not run on a 2nd win10PC w/CorelDRAW2021.
Any suggestions?
Could you elaborate on what you mean by, "will not run"? What are you seeing when you try to run it?
Clicking the icon or RUNning from Scripts does nothing.
Go in VBE and place a break point on its first code line (click on it and press F9).
Try running the code and see if it stop on that line. Probably, not... It is possible that VBE itself to be missing.
If you are able to open VBE, is the GMS file present in the Project Explorer. Theoretically, yes, if you can see the macro to be run, but just in case...
This should mean that VBA is corrupted. I would suggest you to try Corel Repair (Control panel).
If this does not work, you should specifically reinstall VBA. I do not have installation kit for 2021, but I suppose that it has the same structure. In 2018, for instance, you should go `Installation kit -> x64 -> MSIs -> VBA`.
Right click on 'Vba71.msi` and choose `Install`.
Do the same for 'Vba71_1033.MSI` (for English).
Supposing that 2021 installation kit looks the same, this should solve the problem. If not the same, try searching for VBA and see where such a folder can be found...
Edited:
I downloaded now an installation kit and everything looks to be on the same path.
Now, I can see/deduce that VBA works for other macros on the second computer installation, only "Select Same v3" ( I do not know what it is) doesn't. If so, my above suggestion will not be of any help, I am afraid...
Indeed, all other macros seem to be working fine.
Select Same is 'locked' so I can't put a break point in it.
Removed registry entries and it now works! Thanks!
That's good news!
The reason I suggested that is that Select Same remembers the position of the user form between sessions, stored there in the Registry.
On a system where different display configurations are sometimes used (e.g., a laptop that is sometimes used with external monitors), I think it's possible to get into a situation where the "remembered" position puts the user form off the screen.
On my own macros, I include a sub that can be used to clear that information without losing any other Registry-saved settings for the macro.
I don't KNOW that's what happened to you in this case; just trying to explain the reasoning behind my suggestion.