M
M Shafaat
Hi,
How can I reformat the clipboard and/or a DataObject in VBA for Word 2003?
Regards
Mohammad
How can I reformat the clipboard and/or a DataObject in VBA for Word 2003?
Regards
Mohammad
Hi,
How can I reformat the clipboard and/or a DataObject in VBA for Word 2003?
Regards
Mohammad
Jay said:You cannot "reformat" the clipboard from VBA.
Karl said:You could (through the API) read the clipboard, manipulate that data,
wipe the clipboard, and restore new data to it, though. I
kinda/sorta do that with my ConClip tools
(http://vb.mvps.org/tools/ConClip), to actually "strip" the
formatting off the clipboard. This is essentially the same as, but
far easier than, pasting into Notepad and copying back out. (I use
it so often, that I actually keep an icon on my Desktop to clean the
clipboard with a doubleclick!) You'd have to be pretty nutz to take
that to the next level, and try messing with the "rich" formats,
though. <g>
Jay said:That's pretty much what I meant by pasting into a blank Word document,
reformatting, (forgot to mention copying back to the clipboard), and closing
without saving. But I read the original post as wanting to change the
formatting of the clipboard contents while it's still in the clipboard.
That's not gonna happen, at least not in VBA.