A snippet here, this appears to set clipboard text to plain text - removes formatting (fonts etc).
(defun c:TXTCBNF ( / htmlfile result ) ; TXT: text, CB: Clip Board, NF: No Format
;; Set clipboard text to no format
(setq result (vlax-invoke (vlax-get (vlax-get (setq htmlfile (vlax-create-object "htmlfile")) 'ParentWindow) 'ClipBoardData) 'getData "Text"))
(vlax-release-object htmlfile)
;; Put no format text into clipboard
(vlax-invoke (vlax-get (vlax-get (setq htmlfile (vlax-create-object "htmlfile")) 'ParentWindow) 'ClipBoardData) 'setData "Text" result)
(vlax-release-object htmlfile)
(princ)
)
Always many ways to do the same thing!
If you are OK to do LISPs else just ask
(A part of a larger LISP of mine, so think this works... but it might not - my one puts in some thoughts between grabbing the clip board text and resetting it such as mm2 goes to 'squared', some company texts to upper case if not and so on)