Link to home
Start Free TrialLog in
Avatar of mhdhallak
mhdhallak

asked on

Simple Question....

Ok, this is an easy question.

Can somebody give me the code that will open a Microsoft Word (either 97 or 2000) file?
Avatar of mhdhallak
mhdhallak

ASKER

Edited text of question.
Yeah, and I also need a fragment that will open an Excel file of CSV format.
Sub Command1_Click ()
   Set oWDBasic = CreateObject("Word.Basic")
         oWDBasic.FileNew "C:\test.doc"

End Sub

Regards,
Sudhi.
ASKER CERTIFIED SOLUTION
Avatar of corvanderlinden
corvanderlinden

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You forgot:

wrd.Visible = True

It's ok, I figured it out myself.

Thanks anyway