title: C# Excel Interop set multiple cell Values at once
body: <p>How can I add values to 5 cells on the same row at once?</p>
  
  <p>This is how add them right now:</p>
  
  <pre><code>ws.Cells[1, 1] = "1";
  ws.Cells[1, 2] = "2";
  ws.Cells[1, 3] = "3";
  ws.Cells[1, 4] = "4";
  ws.Cells[1, 5] = "5";
  </code></pre>
  
  <p>Expected result:<br>
  <a href="https://i.stack.imgur.com/I2i6S.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I2i6S.jpg" alt="enter image description here"></a></p>