Workbook.ActiveInput

Use this property to return or set the active input dataset within the workbook.

Syntax Parameters Return value
- -

SVB Example

Accessing workbook items by name

Option Base 1
Option Explicit
Sub Main
    Dim w As New Workbook
    w.InsertFile(Path & "\Examples\Datasets\Adstudy.sta",w.Root)
    w.InsertFile(Path & "\Examples\Datasets\IrisDat.sta",w.Root)
    'Set an item to the active input by name
    w.ActiveInput = w.Item("Adstudy")
    w.Visible = True
End Sub