Full Version: VBA Macros
From: Carl (CSEWELL) [#24]
1 Jul 2006
To: Shaddy [#22] 2 Jul 2006
I completed a beta version of the print merge last night. It reads from a hard-coded text filename (temporary only!), copies the selected text and replaces the first word (of the selected text) with the name (one per line) in the text file. The copying is an extension of the XYCopy macro. Not at all elegantly encoded, but it appears to work. It doesn't work correctly with first name and last name, just yet, because of the property I selected to make the replacement. There's probably a better way. It might be easier to use a 'FIELD' as you suggested, but that might be too involved for a novice user to set up.
We'll have to get David to pony up some development funds. ;^)
From: Stunt Engraver (DGL) [#25]
2 Jul 2006
To: Carl (CSEWELL) [#24] 2 Jul 2006
Carl,
I've been following this thread with extreme interest. I don't want to create a stir by mentioning the dreaded "P" word, but these are exactly the types of projects I want to fund.
From: Carl (CSEWELL) [#26]
2 Jul 2006
To: Stunt Engraver (DGL) [#25] 2 Jul 2006
There are also VB protection schemes. One I've used on my CreateADMx software and it seems to work pretty good. It's based on a 2-key pair. One key is generated at the installation site and the liberation is returned based on the first key. Sounds complicated, but it's fairly easy to implement. I'm not sure how well it would play for CorelDraw macros.
I guess I'd rather see the code released for further development, but we'll see how it plays out. There may only be a few macros that would beneficial to the engraving industry.
From: Stunt Engraver (DGL) [#27]
2 Jul 2006
To: Carl (CSEWELL) [#26] 2 Jul 2006
I wasn't so concerned about the "security" of the macros as much as having something developed for the betterment of the engraving industry.
If that can be achieved through volunteerism, fine.
If, as you suggest, a financial incentive would spur things along and increase the quality of the end result (which is often the case) I'm for that as well.
Message 4230.28 was deleted
From: Carl (CSEWELL) [#29]
2 Jul 2006
To: Stunt Engraver (DGL) [#27] 2 Jul 2006
I don't need fame. I can always use more money! Maybe we'll get a REAL programmer to step up to the challenge?!?!?
Do we need to halt development until the P-word site comes online? ;^)
EDITED: 2 Jul 2006 by CSEWELL
From: Stunt Engraver (DGL) [#30]
2 Jul 2006
To: Carl (CSEWELL) [#29] 2 Jul 2006
You said the "P" word.
It's a bad word, depending on which direction the "P" is heading. :-)
My generosity will be limited, until we take that step. >.<
From: sprinter [#31]
2 Jul 2006
To: ALL
From: Carl (CSEWELL) [#32]
2 Jul 2006
To: sprinter [#31] 2 Jul 2006
I happen to use several macros and will definitely use more since my 'style' is based on my many years of using advanced CAD programs and relying on the advanced features that they have. Every shortcut that I can take, even if it takes significant time to develop, has the potential to make me more profitable and improve the service, quality, and accuracy to my customers.
Starting VBA macros in CorelDraw can be as simple as any other CorelDraw command or tool. They can be added to toolbars in just a few seconds. I have a flyout that has just macros with their own icon that makes them easy for me to run. It would be a good idea to export your workspace so it can be easily(?) restored should a problem develop.
I wouldn't recommend anyone embarking on learning VBA just for CorelDraw. I think the learning curve would be far too steep for most people that don't have a programming background. Then again, some people might enjoy the challenge.
I do believe that there is potential for even inexperienced users to take advantage of existing VBA macros, even it is only one or two. And that may not be enough for most people to mess with them. So far, the one that people believe to be the best candidate is an alternative for 'print merge'. Are there any others?
From: Carl (CSEWELL) [#33]
2 Jul 2006
To: Stunt Engraver (DGL) [#30] 2 Jul 2006
So very, very sorry. I'll try to be a better engraver and mind my "Ps" and "Qs".
{Am I banished forever, or just for a probationary period? I edited my post. Does that lessen the sentence?}
From: Stunt Engraver (DGL) [#34]
2 Jul 2006
To: Carl (CSEWELL) [#33] 2 Jul 2006
I'm feeling benevolent today. No time-outs. :P
From: Carl (CSEWELL) [#35]
7 Jul 2006
To: ALL
I just spent several minutes counting letters on a plaque to see if my guesstimate pricing was even close. It wasn't. So I spent 5 minutes creating a CorelDraw VBA macro that will count all the letters in the current selection set (must be text, not curves). It doesn't count CR, FF, LF, etc. For those that are ASCII literate the range is between 32 and 127, non-inclusive.
The macro is about 22 lines long, but only about half of them are absolutely necessary.
Would this macro be of any use to anyone?