Mouse click behavior in Word documents

J

Jan Pott

Hi, as a translator I have worked with CorelDraw and leaving alone the value of the suite, I must say that I always liked one feature that I have not come across elsewhere: after selecting any item and dragging it to a new position, pushing the right mouse button before releasing the left button will indicate that you do not just wish to move the item, but in stead wish to paste a copy of the original at the new position. I've been searching VBA for events, event handling, onMouse etc., but I feel defeated. I have the feeling that it should be fairly easy to write code that will do the same in Word, but i found no clue so far. Can anybody help me with this? Thank you

Jan Pott
 
J

Jean-Guy Marcil

Hi Jan,

You do not need VBA for this:

Click on CTRL (and keep it depressed);
Select your object (Left click on it as usual);
Drag it to where you want the copy to be;
Release the left mouse button;
Release CTRL;
You now have a copy of the original (which is still located at its original
position).

(By the way, this is a standard command in Windows, e.g., you can copy files
or folders from the Windows Explorer this way, you can duplicate a range of
cells in Excel, etc.)

With a macro, play around with this code if you feel you absolutely need a
macro:

Selection.ShapeRange.Duplicate.Select
Selection.ShapeRange.IncrementLeft 25#
Selection.ShapeRange.IncrementTop 25#

(Which will not work if the picture is inline.)

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org


Jan Pott said:
Hi, as a translator I have worked with CorelDraw and leaving alone the
value of the suite, I must say that I always liked one feature that I have
not come across elsewhere: after selecting any item and dragging it to a new
position, pushing the right mouse button before releasing the left button
will indicate that you do not just wish to move the item, but in stead wish
to paste a copy of the original at the new position. I've been searching VBA
for events, event handling, onMouse etc., but I feel defeated. I have the
feeling that it should be fairly easy to write code that will do the same in
Word, but i found no clue so far. Can anybody help me with this? Thank you.
 
J

Jan Pott

Thanks for your response. I'm sorry, I should have mentioned that I am aware of the CTRL-key combination. The thing is that it would be so much more convenient to simply click the mouse once more, especially since I operate four computers through one keyboard, so it happens fairly often that I forget which computer the keyboard is switched to and the CTRL-key, or any key for that matter, does not do what I think it is doing :-(.
 

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