title: Skip to next step if cancel is pressed in InputBox
body: <p>I am currently running a macro with the InputBox code shown below:</p>
  
  <pre><code>ActiveCell.Value = InputBox(Prompt:="Please enter the sample name", Title:="Sample name")
  </code></pre>
  
  <p>It works great for when I don't have any text in the ActiveCell already, but if there is text in there already, it clears the text if I hit cancel.</p>
  
  <p>How can I change this so that if I hit cancel at this step, then it will just skip to the next step and not change what is in the cell already? I don't want it to end the sub, I just want it to skip to the next line in the code.</p>
  
  <p>Thank you for your help.</p>