As any of you in the Corel community probably already know, macros can be used to increase productivity (and/or simply decrease headache time). Each macro undoubtedly have their own merits (or finite uses), but many of us probably look at one and think: "oh that will be useful some day, I need to remember that one" and then promptly forget about it.
My question for the day is what macros people here use regularly. By this I mean, which macros do people use as core additions to their Corel environment--perhaps something you can't live without or something you feel would be useful to many people.
Also, please note what version(s) your macro is compatible with. And it would be becoming to not overly self-promote one's own creation.
I've crearted at least a dozen or so
Fill in my file labels with todays date & full file path so other designers know where I saved a file. Automatically give me dimension lines of selected object. One Macro exports to eps1 so I can go to other computer and use Macro to import that eps1, I don't have to take the time to find the file for cutting vinyl. Created a Macro to copy and paste whatever I have selected onto an 8 1/2 x 11 PDF form. Automatically breaks the dimension lines, groups all then resizes to 7in width, and centers to page. Adds date too. One Macro prepares my banners for print by deleting grommets but leaves a dot where the grommets should go - deletes all dimensions and puts a rectangle where the cut should be.
Myron said:When I start a new page I have it automatically start with my custom file label at the bottom, fills in today's date, defaults to "Broad Sheet" paper size (most commonly requested sign size) Puts the dimensions on the page border too.
I have an approval template I use on 90% of the files. Once I have everything ready, I have a macro that imports it and positions it on the page.
The other one I use daily exports selected objects to an EPS with fonts converted to curves and a matching JPG that is 8x10 and smaller than 99kb. The EPS is labeled Artwork and the JPG is labeled Proof.
anyone have any idea how to hide macro operations until it's finished. I 've created a rather long macro nad don't need to sdee it do every operation.
HI.
I think Myron means this.
You can use command groups so that a user, upon pressing Ctrl + Z or Undo, will not see the steps that were used for the process. All steps will be recorded as a single undo, or operation.
The Optimization property will not allow screen redraw during operation, therefore operation will appear as a single step and be faster.
http://community.coreldraw.com/forums/t/35340.aspx
~John
Ok, tried the "Optimization" code but it messed up my macro so I took it back out. I suspect I'm not inserting it in the right place or places. My code "Calls" several other Macros some I've created and some other free ones I found. Do I have to put the Optimization code in each of those or just in the one?
Hi.
One way is to wrap your function. Check out this example.
The first sub acts as a wrapper that will run your function or sub. Notice it is a public sub and the other, your function, is private. The public sub will show up in your Tools > Customization area. Also notice that if there is an error is will turn of Optimization and make sure to refresh the window.
Sub wrapper() On Error GoTo wrapper_Error Optimization = True myFunction 'run your function Optimization = False ActiveWindow.Refresh On Error GoTo 0 Exit Subwrapper_Error: Optimization = False ActiveWindow.Refresh MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure wrapper of Module test"
End SubPrivate Sub myFunction() Dim s As Shape Set s = ActiveShape 'do something with sEnd Sub