amartins
30th January 2003, 21:16
We have a device set up to take a file from Baan and bring it into Word using "RTF:Windword.exe" in the Argument field. It works fine. How can I get Word to start a specific macro after it loads the file? Do I add something to the Argument field in the Device?
Thanks in advance.
arunprasath
31st January 2003, 07:12
Hi,
for starting a Macro, automatically, as soon as it starts, you dont have to do anything in Baan.
You need to change your macro, which you have written in Word.
What ever function that you want to be executed in Word, as soon as it starts, place it under this standard function in Macro.
Sub Auto_Open()
'put your code, which you want to execute as soon as word starts
End Sub
Hope this helps
s.arun prasath
amartins
3rd February 2003, 23:59
Thanks for your reply, but we don't want the macro to run every time we run Word. I had someone spend some time trying everything we could think of and finally came up with the solution.
If your macro is named xyz, then your argument in your device is "RTF:winword.exe -mxyz". You have to be using baan client 58 or above for this to work.
arunprasath
4th February 2003, 07:32
thanks for your reply.
This is a new thing - 'activating a specific macro from baan client'.
which I dont know.
Thanks for sharing the info..
Regards,
S.Arun Prasath
nick_rogers
4th February 2003, 21:32
Thanks amartins, this someting that has boggled me for months.