//Variable Type Excel; object[] parameter= new object[1]; object ExcelObject; try { //Get the Excel object excel = Type.GetTypeFromProgID("Excel.Application"); //Create instance of Excel excelObject = Activator.CreateInstance(Excel); //Set the parameter whic u want to set parameter[0] = true; //Set the Visible property excel.InvokeMember("Visible", BindingFlags.SetProperty, null, ExcelObject, parameter); } catch(Exception e) { Console.WriteLine("Error Stack {0} ", e.Message) ; } finally { //When this object is destroyed the Excel application will be closed //So Sleep for sometime and see the Excel application Thread.Sleep(5000); //Relaese the object //GC.RunFinalizers() }