Some time ago I installed the macro Select Same. It worked fine. Now I'm trying to use it so Tools > Macros > Run Macro, I choose JH_SelectSame and it does not run. Nothing happens. So I thought I would reinstall it but I also cannot because when I select the macro and hit DELETE, Corel prompts: "Project is unviewable".
I don't know what to do. Maybe manually remove macro files from Corel folder and install it again? But I'm afraid the same problem will occur one day. Please help.
Check installation help here: watch the video: http://macromonster.com/how-to-install-macros/
I did things as in the instructions.
Other macros work.
I disabled antivirus to see whether it is blocking something but not. I don't know. Maybe Windows 7 sees the script as a threat and won't allow to run it? But then it should show me a prompt.
Here is the loose selectsame macro from my own x5 install. Try that.JH_SelectSame.zip
Shall I place it in:
C:\Users\USER\AppData\Roaming\Corel\CorelDRAW Graphics Suite X5\Draw\GMS ?
Fun fact: in my computer this folder is empty. There are no other macros there, even though I have installed a couple.
MichałPe said:C:\Users\USER\AppData\Roaming\Corel\CorelDRAW Graphics Suite X5\Draw\GMS ?
MichałPe said:Fun fact: in my computer this folder is empty. There are no other macros there, even though I have installed a couple.
That is not the only folder where CorelDRAW can "see" GMS files.
See the The "other" GMS folder? section in this blog post: #1: Getting started with using VBA macros (What do you do with a .GMS file?).
I did everything you guys suggested. Went through all the article and everything seems to be in right place but the macro window still doesn't show up Though it's present in Macro Manager and in all possible GMS folders. I also swapped my macro file with Jeff's. No success.
I think that Select Same "remembers" the position of the user form on the screen.
Perhaps it's possible that it is displaying the user form, but it is "off the screen" in your current configuration? I have seen that sort of problem with some macros, if a user has changed their display configuration (e.g., moved between two-monitor and one-monitor configurations).
That information is stored in the Registry. If you delete the Registry entries for Select Same, then it will "forget" anything it has stored there (including the position of the user form).
In my own macros, I include a sub that allows the user to force the macro to "forget" the stored user form position without losing any other stored information.
What happen wehn you try Load on Macro Manager
[HKEY_USERS\YOURHIVE\Software\VB and VBA Program Settings\SelectSame\Preferences]"form_left"="575.25""form_top"="445.5"
That's a more surgical way of doing what I suggested, which was simply deleting the whole Registry section for Select Same, and letting it start over fresh the next time the macro is run.
Nir Sofer's (NirSoft) RegScanner is a useful utility for finding stuff in the Registry. These are my results searching for "selectsame", without case sensitivity:
From the search results, it can open the Registry editor at a specific key.