
Clearing the clipboard from Access
You can use the following to copy and past items to/from the
clipboard:
DoCmd.RunCommand acCmdCopy (copies the currently selected
text)
DoCmd.RunCommand acCmdPaste
I'm unsure, but I think the below might clear the current clip board
contents. If not, you could always add an invisible textbox to your
form, then select the text it contains (which is nothing) and use the
above line (using the copy command) to copy this. This will happen
because the invisible text box will have the focus when you use the
line: "DoCmd.RunCommand acCmdCopy"
DoCmd.RunCommand acCmdClearAll
Lastly, you can select text in a text box by using the following
example:
txtListItemHTML.SetFocus
txtListItemHTML.SelStart = 0
txtListItemHTML.SelLength = Len(txtListItemHTML.Value)
Quote:
> I'm using Office XP. I am using Word automation to create a document from
> Access. In the process I put large images on the clipboard. Can anyone
> tell me how to clear the clipboard from code in Access?
> Thanks,
> A