Hi Skip,
Thanks for checking my post.
Reflections 2014. Whether I GetObject from an existing instance or CreateObject I get the error: Activex component can't create object in the Set sentence.
I think it might be a permissions problem in Reflections Settings, but I can't find it.
In this example, GetObject attaches to a running instance of Reflection by using the Automation server name (the default AutomationServerName value "Reflection Workspace"). This technique allows you to identify a particular Reflection instance even if multiple Reflection instances are active.
Dim ApplicationObject As Attachmate_Reflection_Objects_Framework.ApplicationObject
Set ApplicationObject = GetObject("Reflection Workspace")
ApplicationObject.CreateControl("C:\Users\[Username]\Documents\Attachmate\Reflection\MySession.rd5x")
In this second example, GetObject attaches to a running instance of Reflection . The comma after GetObject indicates that the first argument has been omitted. The line continuation character, an underscore preceded by a space, is used to break up the long line of code.
Dim App As Attachmate_Reflection_Objects_Framework.ApplicationObject
Set App = GetObject(, _ "Attachmate_Reflection_Objects_Framework.ApplicationObject")
In this last example, GetObject opens a new instance of Reflection by returning a reference to the ApplicationObject object. The first argument includes an empty string. The line continuation character, an underscore preceded by a space, is used to break up the long line of code.
Dim App As Attachmate_Reflection_Objects_Framework.ApplicationObject
Set App = GetObject("", _ "Attachmate_Reflection_Objects_Framework.ApplicationObject")