title: Get selected excel cell
body: <p>i am trying to paste something in a specific Excel Cell,
  but sometimes its paste the data somewhere else.</p>
  
  <pre><code> workSheet = ExcelApp.Worksheets[2] as Excel._Worksheet;
               Grd_Dep_In.SelectAll();
              Grd_Dep_In.Copy();
              Excel.Range DepIn = cellsRange.get_Range("a2");
              DepIn.Select();
              workSheet.Paste();
  </code></pre>
  
  <p>Sometimes its pastes in A2, sometimes not.</p>
  
  <p>So i want to check if a2 is the selected cell.</p>
  
  <p>before i start to paste.
  My Code copys in 8 worksheets and generates pivot tables. and sometimes it mess up and copys somewhere else in the excel worksheet.</p>
  
  <p>So what I need:</p>
  
  <pre><code>if (activeCell= A2)
  {
  paste
  
  }
  </code></pre>
  
  <p>But i dont know how to detertimate the active excel cell.</p>