G
gb0dms
I am inserting excel charts and .ppt pages into word
it seems to be hanging after we run these macros
I do have some code for closing the doc's but am I still missing something?
Sub xyScatter()
Charts "S:\CORPFIN\!Template\Memo\Graphics\xy Scatter.xls"
End Sub
Sub GraphicSmall()
Charts "S:\CORPFIN\!Template\Memo\Graphics\GraphicSmall.ppt"
End Sub
Sub Charts(File As String)
If Selection.Information(wdWithInTable) = True Then
Selection.InlineShapes.AddOLEObject , FileName:=File, LinkToFile:=False
'Clear objects
Set InlineShapes = Nothing
Set AppExcel = Nothing
Set AppPowerpoint = Nothing
Set OLEObject = Nothing
Else
MsgBox "Your insertion point is not inside a table."
End If
End Sub
it seems to be hanging after we run these macros
I do have some code for closing the doc's but am I still missing something?
Sub xyScatter()
Charts "S:\CORPFIN\!Template\Memo\Graphics\xy Scatter.xls"
End Sub
Sub GraphicSmall()
Charts "S:\CORPFIN\!Template\Memo\Graphics\GraphicSmall.ppt"
End Sub
Sub Charts(File As String)
If Selection.Information(wdWithInTable) = True Then
Selection.InlineShapes.AddOLEObject , FileName:=File, LinkToFile:=False
'Clear objects
Set InlineShapes = Nothing
Set AppExcel = Nothing
Set AppPowerpoint = Nothing
Set OLEObject = Nothing
Else
MsgBox "Your insertion point is not inside a table."
End If
End Sub