Clearing the officeclipboard in a macro

  • Thread starter Thread starter John Grierson
  • Start date Start date
J

John Grierson

I am using Word 2002

Anyone know the code to clear the office clipboard in a
macro, please.

Using Record Macro displaying the Clipboard produces the
code
WordBasic.EditOfficeClipboard (!?!)

but clicking Clear All (there does not appear to be a key
stroke) is not recorded.

Thanks

John
 
Hi John,

See the article "Manipulating the clipboard using VBA

How to clear the clipboard or get the text on the clipboard into a string
variable" at:

http://www.mvps.org/word/FAQs/MacrosVBA/ManipulateClipboard.htm

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
Back
Top