473,473 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MS Word Object - OnOpen Macro

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
Nov 20 '05 #1
3 3828
Cor
Hi Martin,

His name is not Gurus it is Fergus

But I think he would be late here.

Cor
Nov 20 '05 #2
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.
news://msnews.microsoft.com/microsof...rd.vba.general
news://msnews.microsoft.com/microsof....vba.beginners
news://msnews.microsoft.com/microsof....vba.userforms
news://msnews.microsoft.com/microsof....docmanagement
news://msnews.microsoft.com/microsof...mework.interop
news://msnews.microsoft.com/microsof...per.automation
news://msnews.microsoft.com/microsof...er.office.sdks
news://msnews.microsoft.com/microsof...fficedev.other

Regards,
Fergus
Nov 20 '05 #3
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.
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sivaraman.S | last post by:
Issue: When I am opening a word document or a template from an ASP.NET Web page (language used VB.NET Visual Studio Version 2003) using Word.ApplicationClass object (Reference Word 11.0 object...
3
by: Bob | last post by:
What I want to do is write a program that reads through a Word Document, finds certain words or sentences I want, and then paste into an Excel spreadsheet. I dont know much about C#. But I...
0
by: techie | last post by:
I am trying to run a Word macro. The problem is that the parameters are unchanged after running the macro. This shouldn't be the case because some of the parameters to the Word macro are reference...
0
by: John Dolinka | last post by:
I am trying to run a word macro via automation from an asp.net application. The document loads well enough, but I get an "Unable to run the specified macro" error when attempting to run the macro. ...
5
by: John | last post by:
Hi My vb.net opens a word document from a word template. I am trying to find when the document is saved by the user so I can make a history in my vb.net app. Here is how I think it may work; ...
5
by: Mason | last post by:
I'm having some problems converting VBA for Word 2000 to code that VB.Net understands. I recorded a macro in Word to add numbering (a. b. c.) to my paragraphs. I managed to translate quite a bit...
1
by: ParkMan | last post by:
Hello, I am trying to open a Word template, fill some fields, and mark some check boxes as checked. Here is the code I am using: ' Launch Word and load the report template Set objWord = New...
6
by: Eric Layman | last post by:
Hi, I have fields from textareas. With a click of a button, php is able to grab these fields and by using header(), convert the output to Ms Word doc. But the outcome of the word doc...
0
by: A1000ma | last post by:
I am trying to develop a C# program to fill in the blanks in a Word Form. Everything works beautifully while the program is running. I had to go in to fix some links on our Web Site a couple of...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.