title: Can't Enter Break Mode at this time Error
body: <p>I am trying to do the following in one module:</p>
  
  <ol>
  <li>Replace a <code>Public Const</code> in another module, at run-time.</li>
  <li>Invoke a procedure that uses the updated public constant</li>
  </ol>
  
  <p>However, it throws an error:</p>
  
  <blockquote>
    <p><em>Can't enter break mode at this time</em></p>
  </blockquote>
  
  <p>Although, it <em>does</em> update the public constant.</p>
  
  <p>I tried pressing <kbd>F5</kbd> to resume execution, but it did not help. Any suggestions?</p>
  
  <pre><code>Sub AB()
  
      Call LoadQuoteDetails2.Automation
  
      Application.VBE _
                 .ActiveVBProject _
                 .VBComponents _
                 .Item("mod00Admin") _
                 .CodeModule _
                 .ReplaceLine 2, "Public Const QuoteDB = ""A:\1.0 Projects\P0445 Ireland Commercial Raters\02 Analysis\05 Rate Assessor\ROI Fleet Rater\Quote Database\Quote DB June 18.accdb"""
  
      Call CalcTariffPrem
  
  End Sub
  </code></pre>