Article ID: 185461
Article Last Modified on 6/30/2004
184739 INFO: Where to Obtain the Script Control
Microsoft Script Control 1.0
Private Sub Command1_Click()
On Error Resume Next
With ScriptControl1
.UseSafeSubset = True
.Language = "VBScript"
.AllowUI = True
.AddCode Text1.Text
.Run "Test"
End With
End Sub
Sub Test()
Dim X
Set X = CreateObject("Excel.Application")
X.Visible = True ' this line is Excel-specific
MsgBox "Pausing for effect...."
Set X = Nothing
End Sub
Additional query words: kbAutomation kbScript kbVBp kbVBp500 kbVBp400 kbVBA5 kbVBp600 kbdse kbDSupport
Keywords: kbscript kbprb KB185461