title: Difference between two cells in third cell
body: <p>I was trying to make a VBA script that would calculate the differene between two cells and place it in the third cell. It should work in the following situation:</p>
  
  <ol>
  <li>Three cells are selected. Two of them have values, the third one is blank.</li>
  <li>The VBA script is run.</li>
  <li>The VBA script calculates the difference between cells with values.</li>
  <li>The difference is recorded in the third (blank) cell.</li>
  </ol>
  
  <p>As you could understand such a VBA script should be able to record the difference in a cell on the right from the values, below, on the left or above.</p>
  
  <p>I'm a newbie in vba so my vba coding depends a lot on the forums were similar issues are discussed. But this time I could not find a solution.</p>