How do I use the code you gave me?
If you just want to use a piece of code that I gave you, or you got from someone else here's how to use it.
It's best to set up one gms for your simple code macros like this one.
Go to C:\Program Files\Corel\CorelDRAW Graphics Suite X4\Draw\GMS and make a blank new text doc and name it simple.gms, where "simple" can be any name of your choosing.
Make sure you remove the .txt extension so it will now be simple.gms
Go to tools>macros>macro editor, or enable the macro toolbar and click it there.
On the left you should be able to find the file you made in the project explorer.