Workbook.InsertNew
Use this function to insert a new document or folder into the workbook.
SVB Example
Inserting a new item into a workbook
Option Base 1
Option Explicit
Sub Main
Dim wb As Workbook
'assigns the new workbook to the object wb
Set wb = Workbooks.New("WB Example")
'Inserts a new report document, into the root folder of the
'workbook as the first child
wb.InsertNew(scWorkbookItemTypeReport,wb.Root,scWorkbookFirstChild)
'sets the workbook to visible
wb.Visible = True
End Sub
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.
