Hi, I need your help to solve this problem;
Public Sub MyShell()
Dim ReturnValue As Long
Dim myApp As Excel.Application
ReturnValue = Shell("c:\Program Files\Microsoft _
Office\Office\EXCEL.EXE", vbMaximizedFocus)
AppActivate ReturnValue
Set myApp = GetObject(, "Excel.Application"
myApp.ActiveSheet.Cells(1, 1).Value = 2345656
AppActivate "Microsoft Word"
ThisDocuments.Activate
End Sub
Working with the VBA in Word97 to create Excel Workbook
and return to Word again, I used the procedure above.
Problem IS that after I got back Word its MENU BAR got
inactive and could not work until I selected the wondow
again after selecting other application window.
I need the clue to correct this procedure.
LarryJR
Public Sub MyShell()
Dim ReturnValue As Long
Dim myApp As Excel.Application
ReturnValue = Shell("c:\Program Files\Microsoft _
Office\Office\EXCEL.EXE", vbMaximizedFocus)
AppActivate ReturnValue
Set myApp = GetObject(, "Excel.Application"
myApp.ActiveSheet.Cells(1, 1).Value = 2345656
AppActivate "Microsoft Word"
ThisDocuments.Activate
End Sub
Working with the VBA in Word97 to create Excel Workbook
and return to Word again, I used the procedure above.
Problem IS that after I got back Word its MENU BAR got
inactive and could not work until I selected the wondow
again after selecting other application window.
I need the clue to correct this procedure.
LarryJR