J
john
I have msWord as an embedded object on a tabbed form, the 1st time I click
on its tab the change event fires the below code and opens word in edit
mode. If I click another tab it automatically exits word from edit mode. But
the next time I click on msWord's tab, it does not open into edit mode. I
know it is fires the event for it because I still get the message box, but
does not automatically open word. Any suggestions on the code.
I would also like it to insert a bookmark at its current position on close,
but word as an embedded object, won't fire any of its own Marcos, so any
ideas there would be helpful.
Also is there a way to test to see if word is in edit mode or not?
DoCmd.DoMenuItem acFormBar, acEditMenu, acObject, acObjectVerb
MsgBox "Hot-keys Ctrl+z Goto Bookmark, Ctrl+b Insert Bookmark"
SendKeys "^z", False
on its tab the change event fires the below code and opens word in edit
mode. If I click another tab it automatically exits word from edit mode. But
the next time I click on msWord's tab, it does not open into edit mode. I
know it is fires the event for it because I still get the message box, but
does not automatically open word. Any suggestions on the code.
I would also like it to insert a bookmark at its current position on close,
but word as an embedded object, won't fire any of its own Marcos, so any
ideas there would be helpful.
Also is there a way to test to see if word is in edit mode or not?
DoCmd.DoMenuItem acFormBar, acEditMenu, acObject, acObjectVerb
MsgBox "Hot-keys Ctrl+z Goto Bookmark, Ctrl+b Insert Bookmark"
SendKeys "^z", False