Assuming you are the developer of said VB app, you have to enable the startup object (form or main sub) to accept this argumant. There is a VB function called 'Command$' that does this very thing.<br>
<br>
The code in your app would look something like this (a form is the startup object in this...
I use this in a vb3 project. I can't remember where I got it from. It uses the Windows API function 'Escape'. I place all of the PCL code (commands AND data print) in a string variable (PCLdata$).<br>
<br>
Const PASSTHROUGH = 19<br>
<br>
'i'm not really sure what this line does<br>
PCL$ =...
if you're using WordBasic (word 6/95) then you must change the current view from normal (the default) to header/footer:<br>
<br>
objWord.viewHeader<br>
call SearchReplace<br>
<br>
'gotoheaderfooter toggles the view between the two<br>
objWord.gotoheaderfooter<br>
call SearchReplace<br>...
I'm using VB6 to automate Word97 without problems, but when I try to establish communication from that Word object back to my VB6 app, GetObject fails. I have used CreateObject(VB6app.class) even when the VB6app is running without a second instance of the VB6app starting. Is this normal?<br>...
I'm using VB6 to automate Word97 without problems, but when I try to establish communication from that Word object back to my VB6 app, GetObject fails. I have used CreateObject(VB6app.class) even when the VB6app is running without a second instance of the VB6app starting. Is this normal?<br>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.