Board index » Visual Studio » MS Word Object - OnOpen Macro

MS Word Object - OnOpen Macro

Visual Studio143
Here's my problem. I'm launching an MS Word object on a

Notes document Postopen event. The script kicks off a

macro that saves the Word document to a temporary file

every n minutes (backup of key data). This works fine

apart from Notes kind of hangs because it is waiting on

the macro to finish. This never happens because the macro

is using timer code to save every n minutes. The solution

sounds simple, start the macro on the Word document's

OnOpen event. Easier said than done. Does any one know

where to put the code for a Word document's OnOpen event.

I've already tried using the ThisDocument Class OnOpen

event with no success. I've also tried the MS support

site, but have found no joy there either. I would be

eternally grateful if some Word Macro guru out there could

help me.



Thanx in advance.



Martin


-
 

Re:MS Word Object - OnOpen Macro

Hi Martin,



His name is not Gurus it is Fergus



But I think he would be late here.



Cor





-

Re:MS Word Object - OnOpen Macro

Hi Martin,



Unfortunately I seem to have given the appearence of knowing more than I

do, and this question is actually beyond my reach. We have a drop-in Word

expert but she is away for a while. I'm sorry that we can't help. ;-(



You may have a better chance in one of the Word or Office newsgroups. This

is just a selection.



Regards,

Fergus





-

Re:MS Word Object - OnOpen Macro

Thanks very much for replying anyway Fergus. I've got a

feeling because it is a tempory object within a Lotus

Notes document, that these events will never be

triggered. But it would be nice to know for definite, so

I can report back accurately to my Client.



Many Thanks



Martin.

-