Hello,
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.
Try this
[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.
Yes, it works!
I actually did not delete any registry entry but typed smaller values, like 500; 500, instead of 1400'ish-something. Now I can see my macro :D
I mean, not mine, but. You know.
Thank you so much! From the very beginning I could smell like it was a display issue, not actually macro issue. There were no errors of any kind. And indeed I used extended screen (two monitors).
You guys are so wise.
I'm glad to hear that worked.
I only suggested "remembered user form position" as a possible source for the problem because a user had a similar problem with one of my macros. I now include a sub that allows the user to fix that without editing the Registry.
Is it possible to edit someone else's macro to include such a sub?
MichałPe said:Is it possible to edit someone else's macro to include such a sub?
It might be possible if you knew - as you do in this case - where and how that macro stores the position of the user form.
In this particular case, you could use this code to write values to the Registry to set the form position to 1,1.
Sub SelectSame_form_position_1_1() SaveSetting "SelectSame", "Preferences", "form_top", "1" SaveSetting "SelectSame", "Preferences", "form_left", "1" End Sub
That is not going to be universal for all macros, written by all authors.