How do "Select None" from macro?

C

Chris Cooper

I just copied a bunch of text into a document (using Selection.Paste) and
it's all selected. How do I turn off selection (so that nothing is
selected) in this document?

Thanks!
Chris
 
C

Chris Cooper

Actually, that was apparently a fluke, it hasn't happened since.

However, now I have a different problem - after I copy the text from
document 1 to document 2, when I close Word, it says "You have placed a
large amount of text on the clipboard. Do you want to leave it there and
clog stuff up?" (or words to that effect). How can I clear the clipboard so
that question doesn't get asked?

Thanks!
Chris
 
D

Doug Robbins - Word MVP

Hi Chris,

For another time to collapse the selection use:

Selection.Collapse wdCollapseEnd (or wdCollapseStart)

For your clipboard issue, 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top