Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# excel close workbook

static public void KillExcelWorkbook(string wbook)
{
  Process[] processes = Process.GetProcessesByName("Excel");
  if (processes.Length == 0)
    return;
  foreach(Process p in processes)
  {
    if (p.MainWindowTitle.Contains(wbook))
    {
      p.Kill();
      return;
    }
  }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# add element to array 
Csharp :: c# today without time 
Csharp :: limiting the amount of decimal places c# 
Csharp :: methods c# 
Csharp :: c# linq select as new object 
Csharp :: unity c# change animation 
Csharp :: change size of a unity object 
Csharp :: unity post processing on UI 
Csharp :: c# binary search 
Csharp :: c# convert enumb to int array 
Csharp :: how to write coroutine in unity 
Csharp :: how to create a variable in c# 
Csharp :: msbuild publish to folder command line .net 
Csharp :: export list to excel c# 
Csharp :: jenga db connection 
Csharp :: c# string console readline array 
Csharp :: Winform on exit run method 
Csharp :: convert number of days into months c# 
Csharp :: System.Drawing get from url 
Csharp :: pyqt minimize to tray icon 
Csharp :: c# split string by index 
Csharp :: get int value from enum c# 
Csharp :: c# convert string to uri 
Csharp :: serial number unity pro 
Csharp :: c# datetime remove days 
Csharp :: longest substring without repeating characters c# 
Csharp :: dynamically add rows to datagridview c# 
Csharp :: how to change all values in dictionary c# 
Csharp :: c# convert date to oracle format 
Csharp :: find all factors of a given number 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =