Save excel file in a folder that i opened 2 windows before
<p>I opened a directory in 
window2:</p>

<pre><code>private void CreateFolder()
{
    string path = @"C:\Users\ben\Desktop\מחקר";
    string param = string.Format("{0} {1}, {2}", UserFirstName.Text.ToString(), UserLastName.Text.ToString(), UserDate.Text.ToString());
    string finalPath = System.IO.Path.Combine(path, param);
    System.IO.Directory.CreateDirectory(finalPath);
    Userpath.Text = finalPath;
}
</code></pre>

<p>Now, on the next window I created an excel file:</p>

<pre><code>private void button3_Click(object sender, RoutedEventArgs e)
{
    oXL = new Microsoft.Office.Interop.Excel.Application();
    oXL.Visible = false;
    oWB = (Microsoft.Office.Interop.Excel._Workbook)                                                                     (oXL.Workbooks.Add("")); 
    oSheet = (Microsoft.Office.Interop.Excel._Worksheet)oWB.ActiveSheet;
    oSheet.Range["A1"].Value = "Type";
    oSheet.Range["B1"].Value = "Time";
    oSheet.get_Range("A1", "B1").Font.Bold = true;
    oSheet.get_Range("A1", "B1").VerticalAlignment =
    Microsoft.Office.Interop.Excel.XlVAlign.xlVAlignCenter;
    oWB.SaveAs(@"finalpath2.Text");
 }
</code></pre>

<p>finalpath2 is the same path as the finalpath on the previous window.
the goal is that the excel file will be saved inside the folder that I opened on window2. Can someone please help me?</p>