Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to open a doc file.
#1
Solved: 11 Years, 3 Months, 3 Weeks ago Rolleyes 
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?
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
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")
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
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()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Sad Save data from pdf file to a word doc Amar 0 2,623 12-12-2013, 12:29 PM
Last Post: Amar
Exclamation How to open a text file through VB scripting.? qtplearner88 2 4,450 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 9,561 05-15-2012, 12:07 AM
Last Post: viswa
  How to read text from PDF doc? Rahull 1 5,132 12-21-2010, 07:05 PM
Last Post: upadhyay40
  Open lastmodified file in a folder vimal singh 1 2,185 04-26-2010, 05:02 PM
Last Post: manishbhalshankar

Forum Jump:


Users browsing this thread: 1 Guest(s)