Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# excel 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# get property type of list 
Csharp :: c# public static string 
Csharp :: unity camera follow with lerp 
Csharp :: c# get the first 4 characters in the list 
Csharp :: how do you make a 2D object follow another 2D object in unity 2D 
Csharp :: c# how to check for internet connectivity 
Csharp :: text read C# 
Csharp :: c# get process file location 
Csharp :: unity set sprite image from script 
Csharp :: c# close program 
Csharp :: c# datetime blank 
Csharp :: C# new form 
Csharp :: append 2 arrays c# 
Csharp :: how to insert into a list c# 
Csharp :: c# allowedusernamecharacters 
Csharp :: map user to ConnectionId SignalR 
Csharp :: unity unfreeze position in script 
Csharp :: Data at the root level is invalid. Line 1, position 1. 
Csharp :: c# xml get child node by name 
Csharp :: c# read double 
Csharp :: how to add to a list in c# 
Csharp :: disabling a button if textbox is empty c# 
Csharp :: vb.net get date minus one day 
Csharp :: return an interface or a class C# 
Csharp :: same click event diffrenet buttonms c# 
Csharp :: string c# 
Csharp :: ontriggerenter 
Csharp :: select distinct two columns entity framework c# 
Csharp :: c# map function 
Csharp :: c# array.reduce 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =