Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have an embedded Word object (a form that works better in Word than Excel).
I inserted a text box with the instruction to click it to activate the Word form: Sub WordForm() Set obj = Sheets("sheet1").OLEObjects("Object 21") obj.Activate End Sub My problem is returning the focus to the Excel worksheet when the user has finished filling in the form. I'm sure it's pretty simple, but I can't seem to get anything to work. Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim wdApp As Word.Application
'... Set wdApp = Nothing Some other things to try: word.ActiveDocument.close word.quit SET word = nothing Finally, there is a good example of how to dicsonnect from Word he http://www.erlandsendata.no/english/...olecontrolword HTH, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "Joyce" wrote: I have an embedded Word object (a form that works better in Word than Excel). I inserted a text box with the instruction to click it to activate the Word form: Sub WordForm() Set obj = Sheets("sheet1").OLEObjects("Object 21") obj.Activate End Sub My problem is returning the focus to the Excel worksheet when the user has finished filling in the form. I'm sure it's pretty simple, but I can't seem to get anything to work. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel object linked to word will not add sums in word | Excel Discussion (Misc queries) | |||
Insert Excel Object in MS Word | Excel Programming | |||
PLS HELP! Excel imbedded object in Word | Excel Discussion (Misc queries) | |||
word object in excel | Excel Programming | |||
Return MS Word word counts in Excel? | Excel Programming |