`
OLE/ActiveX: MS-Word mail-merge code 2 2004-07-05 -- Peter Kirk Newsgroups: softvelocity.clarion.language > 1. Are you displaying the Word window? Yes, see line - ?OBJ{'Visible'} = vbTrue > 2. How do you define vbTrue and vbFalse? I embeded the following code in 'After Global Includes' !VBA Constants vbFalse EQUATE(0) vbTrue EQUATE(-1) !Word Document Constants wdDoNotSaveChanges EQUATE(0) wdPrintPreview EQUATE(4) !Excel WindowState xlMaximized EQUATE(-4137) xlMinimized EQUATE(-4140) xlNormal EQUATE(-4143) PS> Just as an afterthought, Occasional problem with Object not closing:- Sometimes the Application Object will not close correctly following PROP:DeActivate. I use TerminateProcess (API), but others have reported success calling prop:deactivate (3 or more times) until the Object closes. Regards Peter Kirk Printed November 23, 2024, 5:58 am This article has been viewed/printed 35364 times. Google search has resulted in 24 hits on this article since January 25, 2004. |