title: VBA - Unable to get TextBoxes Property of Worksheet Class
body: <p>Fairly new to VBA and I just started encountering the error <code>Unable to get TextBoxes Property of Worksheet Class</code>.</p>
  
  <p>It highlights the following line:</p>
  
  <p><code>ActiveSheet.TextBoxes("txtFilePath").Text = Application.ActiveWorkbook.Path &amp; "\"</code></p>
  
  <p>The mystery to me is that I know this line was working before without any problems. The only thing I could think of is that I was messing with protecting the sheet, but even now that it is unprotected I still get the error. I've also tried the following solution, but encounter the same error:</p>
  
  <p><code>ActiveSheet.OLEObjects("txtFilePath").Object.Text = Application.ActiveWorkbook.Path &amp; "\"</code></p>
  
  <p>Can anyone explain to me why I am encountering the error and why I started encountering it so randomly? How can I fix it?</p>