title: VBA - Calling a function which accepts parent object as variable
body: <p>Is it possible to create a function which accepts it's parent object as a variable?  I suppose the simplest way to illustrate what I'm talking about is to provide an example:</p>
  
  <p>Module 1 Code:</p>
  
  <pre><code>Function IsProduct() as Boolean
      IsProduct = (vartype(Parent.Value) &lt;&gt; vbEmpty)
  End Function
  ' "Parent" in this case would be a Range '
  </code></pre>
  
  <p>Module 2 Code:</p>
  
  <pre><code>Dim myRng as Range
  If myRng.IsProduct Then Debug.Print "'Tis a product, sir."
  </code></pre>