This function launches the application associated with "DOC" files which in your case happens to be MS Word. In Explorer, under Options - File Types, you can edit what application is associated with these types of files. If you select the Viewer, then everything should work okay.
>hello mr. moore
>thanks you for responding.
>I tried the code, but it brings up Microsoft Word. I need Microsoft Word >Viewer. Is there something I'm not doing right?
>DECLARE INTEGER ShellExecute IN Shell32.dll LONG, STRING, STRING, STRING, >STRING, LONG
>=ShellExecute(0,"Open","MyWordDoc.doc","","",0)
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao