title: Office Scripts --> For Loop --> Range Error
body: <p>I am using a for loop to get a range of cells. But when I specify range, it's returning a string. Please help me with this.</p>
  <p>Also, I have attached an image of the Error.</p>
  <pre><code>function main(workbook: ExcelScript.Workbook)
  {
    for (let i=0; i&lt;=10; i++)
    {
     var start = 2 + (13 * i);
     var end = 14 + (13 * i);
  
     var id_start = 'F' + start;
     var id_end = 'BM' + end;
     console.log(id_start)
     console.log(id_end)
  
     let newrange = 'id_start:id_end';   // Here is Error ---- I need newrange as F2:BM14 
     console.log(newrange)
     workbook.getWorksheet(&quot;Emp&quot;).getRange(newrange);
    }
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/s9yn6.png" rel="nofollow noreferrer">Image - Code with Error</a></p>