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.
[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.
SaveSetting "SelectSame", "Preferences", "form_top", "1"
SaveSetting "SelectSame", "Preferences", "form_left", "1"
That is not going to be universal for all macros, written by all authors.