Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Performance Issue - Adding controls at run time

Status
Not open for further replies.

rsouthon

Programmer
Nov 14, 2002
10
CA
I'm using VBA to add a control to Word at run-time. I'm using the following code to add a checkbox:

Dim m_shape As InlineShape
Dim WithEvents m_check As MSForms.CheckBox

Set m_shape = Selection.InlineShapes.AddOLEControl(ClassType:="Forms.checkbox.1")

Set m_check = m_shape.OLEFormat.Object


The problem is that they take forever to load. Does anyone know a way to speed this process up? I would also appreciate any alternate ways to add the controls at run-time.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top