I want to write in a doc file but i m unable to open a doc file with the help of FSO ...
Kindly reply me...
what should i do for this?
Kindly reply me...
what should i do for this?
|
Unable to open a doc file.
|
|
I want to write in a doc file but i m unable to open a doc file with the help of FSO ...
Kindly reply me... what should i do for this?
05-20-2009, 01:57 PM
Hi ,
Instead of FSO(FileSystemObject), u can use "Word.Application" Just try with the below approach: Code: Dim word
Set word = CreateObject( "Word.Application" )
word.Visible = True
Set doc= word.Documents.Open("Give ur required Word Doc. Path")
05-20-2009, 02:01 PM
Hi,
This would help you to create a Word file and access it Code: Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Set objDoc = objWord.Documents.Add() |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
|
|
Save data from pdf file to a word doc | Amar | 0 | 3,072 |
12-12-2013, 12:29 PM Last Post: Amar |
|
|
How to open a text file through VB scripting.? | qtplearner88 | 2 | 5,305 |
06-22-2012, 01:51 PM Last Post: ravs@788 |
| Unable to select an item from weblist and unable to enter text in edit box | estherindu | 5 | 10,747 |
05-15-2012, 12:07 AM Last Post: viswa |
|
| How to read text from PDF doc? | Rahull | 1 | 5,648 |
12-21-2010, 07:05 PM Last Post: upadhyay40 |
|
| Open lastmodified file in a folder | vimal singh | 1 | 2,579 |
04-26-2010, 05:02 PM Last Post: manishbhalshankar |
|