![]() |
#1
|
|||
|
|||
![]()
I'm new to Corel Draw and trying to do a find/replace on text in a cdr label. I'm able to open the label, but am having difficulties with the find/replace. I have tried some of the other methods in this forum, but just keep hitting a wall with Object doesn't support this property or method. (Yes, I have selected CorelDRAW 9.1 for Office Type Library). Are there other Corel libraries that I need, but don't have? Or am I just not doing this right?
Any help will be greatly appreciated! |
#2
|
||||
|
||||
![]() Quote:
If you want to replace some text strings inside text objects in CorelDRAW 9 document, here is how you do it: Code:
Sub Test() Dim s As Shape For Each s In ActivePage.Shapes If s.Type = cdrTextShape Then s.Text.Replace "text", "object", True End If Next s End Sub So, if you have a text object with, say, "Some text" string in it, you'll end up with "Some object". I hope this helps. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CorelDRAW 12 SP1 is available | Alex | CorelDRAW/Corel DESIGNER VBA | 1 | 04-08-2004 01:43 |
Preview from CorelDRAW file and/or worksheet | reanan | CorelDRAW/Corel DESIGNER VBA | 5 | 15-05-2003 18:29 |
Link in CorelDraw 11 | met | CorelDRAW/Corel DESIGNER VBA | 0 | 25-03-2003 08:17 |
Creating macros for CorelDraw 10 in CorelDraw 11 | Rick Randall | CorelDRAW/Corel DESIGNER VBA | 1 | 14-03-2003 08:00 |
CorelDRAW 11 and AddIn’s | reanan | CorelDRAW/Corel DESIGNER VBA | 2 | 03-12-2002 14:21 |