I’m working on a macro that copies text from CorelDraw and puts it into text boxes in Word. I realize this is an CorelDraw is a bit obscure but I’m thinking that since it’s all Visual Basic, a lot of the code would be the same as an Excel macro to control Word.
Right now I can get the following code to work from CorelDraw:
Sub WordPlay()
Dim i As Integer
Set wrdApp = CreateObject(“Word.Application”)
wrdApp.Visible = True
Set wrdDoc = wrdApp.Documents.Add ‘ create a new document
With wrdDoc
Dim Box As Shape
For i = 1 To 2
.Content.InsertAfter “Here is a example test line #” & i
.Content.InsertParagraphAfter
Next i
End With
End Sub
Does anyone know how I can get the sample text into text boxes?
Thanks in advance, I’ve been searching and experimented but haven’t gotten very far.