Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-2019, 07:14 PM
wardw wardw is offline Dragging a selection to copy it, not to move it Windows 7 64bit Dragging a selection to copy it, not to move it Office 2007
Advanced Beginner
Dragging a selection to copy it, not to move it
 
Join Date: Oct 2012
Posts: 56
wardw is on a distinguished road
Default Dragging a selection to copy it, not to move it

I do a lot of editing in PC Word 2007, where I very frequently need to copy a selection and paste it elsewhere. Of course, there's a way to drag a selection to elsewhere, but that moves it and doesn't copy it. I have to use Ctrl-C and Ctrl-V.




I'd like some guidance as to how to create a macro where I could select some text, hold down a key (or two) and drag the selection to copy it into another place, leaving the original text in place.


I'm reasonably familiar with VBA, so I can code it myself, but I'm not sure which terms are needed to carry out the action.


Thanks in advance for any hints.
Reply With Quote
  #2  
Old 11-28-2019, 08:52 AM
gmayor's Avatar
gmayor gmayor is offline Dragging a selection to copy it, not to move it Windows 10 Dragging a selection to copy it, not to move it Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Hold the CTRL key while you drag and drop and the text is copied to the new location rather than moved.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 11-28-2019, 11:09 AM
wardw wardw is offline Dragging a selection to copy it, not to move it Windows 7 64bit Dragging a selection to copy it, not to move it Office 2007
Advanced Beginner
Dragging a selection to copy it, not to move it
 
Join Date: Oct 2012
Posts: 56
wardw is on a distinguished road
Default

Good grief; why didn't I know that? Thanks for your reply, gmayor; you made my Thanksgiving day!
Reply With Quote
Reply

Tags
copy and paste, mouse drag

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dragging a selection to copy it, not to move it How to move a selection one cell up using VBA? Bumba Excel Programming 6 11-19-2019 08:50 AM
Dragging a selection to copy it, not to move it Move Selection to the next Column on a Page (Not a table) GuitarForLife Word VBA 7 02-09-2018 01:59 PM
Dragging a selection to copy it, not to move it copy and move not working inventorgeorge Word 8 07-09-2012 03:59 PM
Hyperlink i Word: Copy-paste, and move eradem Word 0 10-01-2011 03:50 AM
Dragging a selection to copy it, not to move it don't move/copy...., where? Yumin Word 1 04-04-2010 08:22 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:17 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft