General information
Category:
COM/DCOM and OLE Automation
Title:
OChart.Application.Quit takes a long time. Why?
I have several MS Graphs in a Word document that I am manipulating basically as follows.
The problem is that OChart.Application.Quit takes a long time, 10 seconds on my machine.
Does anyone have any idea why this is or how to speed it up?
Thanks,
local oChart as Object
oWord.ActiveDocument.Bookmarks("C_PerformChart").select
oWord.selection.InlineShapes(1).OLEFormat.edit()
oChart = oWord.selection.InlineShapes(1).OLEFormat.object
with oChart
.activate
.ChartTitle.caption = "Blah"
.application.DataSheet.cells(2,2).value = lnTestTime
.application.update
.application.quit && this takes around 10 seconds on my machine
endwith
oChart = .null.
release oChart
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only