Hi,
How do I open and close a word document late bound style in vb6.0.
with error checking.
Cheers, :)
Printable View
Hi,
How do I open and close a word document late bound style in vb6.0.
with error checking.
Cheers, :)
Something like this:
VB Code:
Dim oWord As Object, oDoc As Object On Error Resume Next Set oWord = CreateObject("Word.Application") 'Open Word. If Err.Number <> 0 Then Debug.Print "Problem opening Word." Exit Sub Else Set oDoc = oWord.documents.Open("D:\word.doc") 'Open a document. If Err.Number <> 0 Then Debug.Print "Problem opening document." Else 'Work with document. oDoc.Close 'Close the document. oWord.Quit 'Quit the application. End If End If
Cheers expert Comitern!!!!!!Hey any ideas with my line up table of two table posts! The idea after achieving the line up with each table is:-
via if formulas match each field with each table but 1st I need to sort out the line up rountine.
Cheers buddy! :)