code for button that will open OLE object for editing

Hi All,
I'm looking for some code to assign to a button that will open an embedded MS Word object for editing. Most people will have the form that contains the button and OLE object opened in Read mode rather then Edit mode when they click on it.
Object class: Word.Document.8
Name: MSWordDoc
This is strickly an internal database that will be accessed with the Notes client so it doesn't need to be web friendly.

appreciate any help
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Use NotesEmbeddedObject.Activate method to open the ole obj

To get the handl of EmbeddedObject use NotesRichTextItem.EmbeddedObjects Array and loop thru the list of objects and activate


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
If the OLE object is the first thing selected on the form then @Command([ObjectOpen]) will work.  Of course, users can just double-click the object to open it -- you will get a message that says the object can't be saved back to Notes because it is not being edited.

Sometimes users can't tell that there is an OLE object present.  @Command([ViewShowObject]) causes Ntes to display the object border in read mode, the same as it usually displays in eidt mode.
manta357Author Commented:
qwaletee -that's pretty much how it is now, the problem is some users get confused between opening a record and having it open for editting, and it needs to be in edit mode so they can save changes (if they make them) to the embedded Word object. I'm trying to simplify it for them: open record - click button - make changes.

Hemanth -I'm still a newbie to lotusscript, but that gives me some commands and a direction to look into. Let me poke around with it abit and post back.
Example in help doc will help u get started
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.