Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to make any correction in txt.doc file in VB

Status
Not open for further replies.

cmaknp

Programmer
Aug 28, 2002
25
IN
i m having txt.doc file..& want to any correction in vb , but unable to do..anyone help me..how to use find,span, or selstart as in below

Public Sub printdoc(sdoc As String, intcopies As Integer)
Dim mydoc As Object
Set mydoc = CreateObject("word.application.8")
With mydoc
.Documents.Open sdoc, , True
.Visible = True
' .Activate
.activedocument.PrintOut Copies:=intcopies
.activedocument.Close
.quit
End With
Set mydoc = Nothing
End Sub

pls help!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top