title: how to open worksheet by passing value into variable in VBA
body: <p>I'm trying to open worksheet by taking value from one cell and concate the desire file name but it shows error : object variable or with block variable not set
  i'm using following code :
  where "123.xlsx" is name of workbook that i want to open .</p>
  
  <pre><code>Dim output_path As Workbook
  dim xlwkbrpt1  as workbook
  output_path = Application.ActiveWorkbook.ActiveSheet.Range("F14").Value
  Set xlwkbrpt1 = xlApp.Workbooks.Open(output_path &amp; "\" &amp; "123.xlsx")
  </code></pre>