|
-
Jul 25th, 2001, 11:34 PM
#1
Thread Starter
Member
Draw textbox, format border and type text into textbox in a .doc file
I use this codes to open a .doc file and draw a textbox in it. What should I add to input text into the textbox (I used Selection.Text = "......." but the text are outside the textbox) and format it's borders?
[FONT=courier new][COLOR=darkblue]
Private Sub Command1_Click()
Dim objWord As New Word.Application
Dim objDoc As Word.Document
objWord.DisplayAlerts = wdAlertsNone
Set objDoc = objWord.Documents.Add
objDoc.Shapes.AddTextbox msoTextOrientationHorizontal, 100, 100, 100, 300
objDoc.SaveAs "C:\WINDOWS\Desktop\label.doc", wdFormatDocument
objWord.Quit
cmdEnd.SetFocus
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|