View Single Post
  #23   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Double-Click Copy/Paste in Word


I don't see what Lotus Pro has to do with the different behaviour of Word.
They are entirely different applications. However while it is not a
particularly good idea to store your passwords in a document - there are
plenty of password management applications around that would be more
secure - you can address your immediate problem with a macro.

Add the following macro to a toolbar button and use it to copy your password
to the clipboard. It will eliminate any following spaces or paragraph mark
(which would also be selected if you double click the last word in a
paragraph) from your double click selection.

Sub MyCopy()
Dim oRng As Range
If Len(Selection.Range) 1 Then
Set oRng = Selection.Range
Do While oRng.Characters.Last = Chr(32) Or _
oRng.Characters.Last = Chr(13)
oRng.End = oRng.End - 1
Loop
oRng.Copy
Else
MsgBox "Select the text first!"
End If
End Sub

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Brian" .(donotspam) wrote in message
...
So there is no way around this problem (did you read my initial post?)? It
seems weird to me that it wouldnt just pick up what Im double clicking on,
as
it has always done, for years, using my Lotus Word Pro, which I can no
longer
use as it is not supported by Win-7. I copy/paste Passwords all day every
day, so this is a big hassle for me, as a new Word user. I guess I will
[amazingly] have to put a 'period' after each of my passwords, so I can
[double-click] copy/paste.
--
Brian
Kansas City


"Doug Robbins - Word MVP" wrote:

The double click will always pick up the space(s) after a word unless it
is
immediately followed by a punctation mark.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.