Code:
Option Explicit On
Option Strict Off
Imports System.IO
Imports System.Text
Public Class Form1
Public moApp As Object
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
moApp = CreateObject("Excel.Application")
moApp.Visible = False
Catch