The current Word session will not be affected unless you're using the same Export File Name every time.
>I've been trying to export a report to word and it's seems to be working fine the first time I do it. If I export again it closes the original Word window and opens a new one. I've included my code below. Can someone see how I could change it to allow it to open another Word window without closing the first one.
>I'm afraid of people editing documents. Then by running my app they lose their changes without the chance of saving.
>
>Any help would be great,
>
>LPARAMETERS tcExportFileName
>
>Declare Integer ShellExecute In SHELL32.Dll Integer , String , String , String , String , INTEGER
>
>ShellExecute(0,'Open',tcExportFileName,'','',1)
--sb--