Place contect of clipboard into a form field

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible for me to place the content of the clipboard into a field on a
form using code behind that form. What I'm trying to accomplish is an
automatic paste into a field when the form gains focus.
 
Try:
Me.[WhateverControlYouWantHere].SetFocus
RunCommand acCmdPaste

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

message
news:[email protected]...
 
Thanks, that worked perfectly.

Allen Browne said:
Try:
Me.[WhateverControlYouWantHere].SetFocus
RunCommand acCmdPaste

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

message
Is it possible for me to place the content of the clipboard into a field
on a
form using code behind that form. What I'm trying to accomplish is an
automatic paste into a field when the form gains focus.
 
Back
Top