title: How to check if clipboard is empty of text?
body: <p>If I try to paste from an empty clipboard, I get an error.  I would like to check if the clipboard is empty of text before pasting so that I can avoid this.  How can this be accomplished?  I'm aware it can be done through error handling, but I would prefer a method that avoids an error.</p>
  
  <p>Edit -- Per request, adding code that creates the error and the error message:</p>
  
  <p>Code that causes the problem:</p>
  
  <pre><code>Sub PasteFromEmptyClipBoard()
  
      Selection.Paste
  
  End Sub
  </code></pre>
  
  <p>Error message that I get:</p>
  
  <p><a href="https://i.stack.imgur.com/cy9rw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cy9rw.png" alt="enter image description here"></a></p>
  
  <p>"Run-time error '4605'  This method or property is not available because the Clipboard is empty or is not valid."</p>