Creating an Object with the CreateObject Function : CreateObject « Application « VBA / Excel / Access / Word






Creating an Object with the CreateObject Function

 
Sub excel()
    Dim myNewSheet As Object
    Set myNewSheet = CreateObject("Excel.Sheet")
End Sub
          

 

Related examples in the same category