English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Can any body tell me how to read from or write file in Microsoft Word using visual basic 6.0

2006-07-08 02:04:10 · 2 answers · asked by dipak 2 in Computers & Internet Software

2 answers

'Declare and create Word Application
Dim wordApp As Word.Application
Set wordApp = New Word.Application

'Declare and create Word document
Dim wordDoc As Word.Document
Set wordDoc = GetObject("C:\mydoc.doc")

' Make Microsoft Word visible by setting the property below to true
wordApp.Visible = False

'
'
' Your document manipulation code here
'
'

'Close Microsoft Word and clear variables.
wordApp.Quit
Set wordApp = Nothing

Check the link below for additional help.

2006-07-08 02:25:19 · answer #1 · answered by Vj. 2 · 1 0

What you're speaking about is called seen straightforward for applications (VBA), you could open the macro editor, for the shortcut is Alt+F11. purely google for "VBA for MS be conscious, and also you will get plethora of sites demonstrating a thanks to apply it.

2016-11-30 20:48:42 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers