title: how copy text from vba to windows clipbaord
body: <p>I have an ms access vba code from which i wish to copy some text value to the Windows clipboard so that I can paste it elsewhere (Word/Excel/Notepad/etc).</p>
  <p>I have been searching for this in SO but everything seems over-complicated.
  Should it not be something simple like</p>
  <p>clipboard.SetText textValue</p>
  <p>?</p>
  <p>EDIT</p>
  <p>I tried following the hint by BrianMStafford but don't succeed. Perhaps the reason is that my object is a node in a tree.
  When I do</p>
  <blockquote>
  <p>MsgBox Me.NodeKey.Value</p>
  </blockquote>
  <p>it all works fine - I see the node path in the message box.</p>
  <p><a href="https://i.stack.imgur.com/7z2xq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7z2xq.png" alt="enter image description here" /></a></p>
  <p>But when I do</p>
  <blockquote>
  <p>Me.NodeKey.SetFocus<br />
  DoCmd.RunCommand acCmdCopy</p>
  </blockquote>
  <p>I don't get the node path in the clipboard</p>
  <p>So how can I copy the node path value into the Windows clipboard?</p>