![]() |
#1
|
|||
|
|||
![]()
Hello
I've been trying to code an application that reads text from corel draw and places it into textboxes on a vb form. Heres the jist of what i had... Code:
For Each g1 In ActiveSelection.Shapes If g1.Type = cdrTextShape Then Set t = g1.Text TempEdit.TextBox1.Value = t.Story End If Next g1 Hope that made sense. ![]() Thanks again! ________ HONDA INTEGRA DC5 Last edited by Steve; 12-03-2011 at 01:32. |
#2
|
|||
|
|||
![]()
Hi Steve,
why not in the same textbox ? This way : Code:
TextBox1.MultiLine = True For Each g1 In ActiveSelection.Shapes If g1.Type = cdrTextShape Then Set t = g1.Text TextBox1.Value = TextBox1.Value & vbCrLf & t.Story End If Next g1 Jean-Marie |
#3
|
|||
|
|||
![]()
Thanks JMP
I appreciate the help! My application needs to later read from the text filled textboxes later in the program. I was recently considering creating the textboxes in the loop. If it finds text then it creates the textbox on the form and fills it with the found text. That's the only thing I can think of. Any other ideas? ![]() Thanks agian!! Steve ________ Grape Ape Marijuana Strain Last edited by Steve; 12-03-2011 at 01:32. |
#5
|
||||
|
||||
![]() Quote:
|
#6
|
|||
|
|||
![]()
Hi Alex
Long time.. Hopefully... my application reads the text in a design and puts it into a place (like a textbox) to be edited and the edited text would find and replace the text it found. Can I do that with a list box? Maybe via index numbers? Thanks for your help. ________ Buy vaporizers Last edited by Steve; 12-03-2011 at 01:32. |
#7
|
||||
|
||||
![]()
Yes, you still can do that. Put a list box and a text box on a form. When you launch your macro, it goes through each text object, gets its text and puts it into the text box. Then the user can pick an entry from the list and it will be copied to the text box where the item can be edited. After everything is done, the edited text is replaced in the document.
|
#8
|
|||
|
|||
![]()
Perfect! My only problem is I'm having a hard time coding it.
![]() Code:
s.text.replace listbox1.?, textbox1, false, , true Thanks. This is a lot of help... again! ________ Toyota caldina history Last edited by Steve; 12-03-2011 at 01:33. |
#9
|
|||
|
|||
![]()
Perfect!!
I got it working. Thanks again for the clues. This did create another problem though. How do I keep the list box from having more than one of any item. example:layered text is read as many times as is there. Any ideas? Thanks!! ________ HONDA CB1100F Last edited by Steve; 12-03-2011 at 01:33. |
![]() |
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 |
Text ENCODE | Craig Tucker | CorelDRAW/Corel DESIGNER VBA | 10 | 26-01-2005 14:59 |
format text dialog box implement | graphicdesigner | CorelDRAW/Corel DESIGNER VBA | 5 | 22-12-2004 14:37 |
Getting the center X on a text shape | Rick Randall | CorelDRAW/Corel DESIGNER VBA | 4 | 03-08-2004 19:27 |
Reset text after text compression. | Bellekom | CorelDRAW/Corel DESIGNER VBA | 2 | 05-05-2004 07:14 |
Placing a custom envelope on Text | larrypanattoni | CorelDRAW/Corel DESIGNER VBA | 3 | 23-04-2003 10:18 |