473,756 Members | 5,160 Online
Bytes | Software Development & Data Engineering Community
+ 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 3857
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
4014
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 Library), I am getting the following error: could not open macro storage (System.Runtime.comExeception) I am not getting any errors while opening the same word document or a template from a windows application. (Language Used VB.NET)
3
4363
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 learned how to use those COM Interop things. And Im able to write code that allows me to open existing Word documents and existing Excel spreadsheets. And I know how to write into specific columns and rows of the spreadsheet.
0
1006
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 variables. This is not a problem with the macro because it known to work fine. Here's my code: object oMissing = Missing.Value; object oConfigFile = "validatorconfig.xml"; object oReturnErrors = 0, oReturnWarnings = 0;
0
1121
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. I am using authentication "no anonymous", so it should be able to get the right Normal.dot from my profile (correct assumption?). I am aware of article http://support.microsoft.com/default.aspx?scid=kb;EN-US;288366 but that does not really...
5
2873
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; Open a word doc from vb.net app, pass ref of a vb.net event handler to the word doc, in word, use FileSave macro to call the vb.net event handler when the document is saved. The vb.net event handler creates history in vb.net app.
5
5335
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 of it, but I'm having trouble with two pieces: ListGalleries - I can't find any way to make VB.Net understand this. When I do a mouseover, the error message it gives is, "Interface 'Word.ListGalleries' cannot be indexed because it has no...
1
4652
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 Word.Application objWord.Documents.Add _ Application.CurrentProject.Path & "\PEFA_Field_Sheet.dot" objWord.Visible = True
6
4643
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 doesn't wrap the text in textarea. the result is one very veyr long string of text which stretch MS word all
0
1329
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 days later and found any Word Document containing links now shows the code instead of the link. i.e. {HYPERLINK "Executive%20Summary%20for%20CSI.doc"} instead of CSI. I have traced this error down to my program but don't know what is causing it. ...
0
9255
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10014
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9844
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9689
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7226
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6514
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5119
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3326
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2647
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.