Macro to copy and paste to new page

%3CLINGO-SUB%20id%3D%22lingo-sub-2767375%22%20slang%3D%22en-US%22%3EMacro%20to%20copy%20and%20paste%20to%20new%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2767375%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20create%20a%20macro%20in%20Microsoft%20Word%20which%20allows%20for%20an%20%22add%20to%20cart%22%20type%20of%20functionality.%26nbsp%3B%20I%20have%20a%20150%20pg%20document%20with%20item%20%23's%20throughout%2C%20and%20I%20want%20users%20to%20be%20able%20to%20double-click%20on%20the%20items%20%23's%20and%20have%20the%20double-click%20trigger%20the%20item%20%23%20being%20copied%20and%20pasted%20to%20a%20new%20word%20document%2C%20with%20each%20subsequent%20double-click%20pasting%20to%20the%20newly%20created%20word%20doc%20as%20a%20delimited%20list%20with%20a%20comma%20separating%20each%20number.%26nbsp%3B%20Also%20hoping%20for%20a%20validation%20that%20prevents%20duplicates.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20for%20example%20a%20user%20opens%20the%20word%20document%2C%20double-clicks%20on%20%221234%22%2C%20a%20new%20word%20document%2C%20call%20it%20%22List%22%2C%20opens%20with%20%221234%22%20pasted%20at%20the%20top.%26nbsp%3B%20If%20the%20user%20then%20goes%20and%20double-clicks%20%225678%22%2C%20it%20will%20paste%20that%20into%20the%20%22List%22%20doc%20so%20that%20the%20list%20doc%20reads%20%221234%2C%205678%22.%26nbsp%3B%20If%20the%20user%20is%20then%20to%20double-click%20%225678%22%20again%2C%20it%20would%20recognize%20that%20this%20is%20a%20duplicate%20and%20not%20paste%20to%20the%20%22List%22%20doc%20a%20second%20time.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20of%20the%20item%20%23's%20in%20the%20document%20are%20hyperlinked%2Funderlined%20if%20that%20helps%20for%20identification.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20pretty%20clueless%20when%20it%20comes%20to%20Macros%20and%20could%20use%20some%20help%2C%20if%20anyone%20is%20able%20to%20assist.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20VERY%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,

 

I'm trying to create a macro in Microsoft Word which allows for an "add to cart" type of functionality.  I have a 150 pg document with item #'s throughout, and I want users to be able to double-click on the items #'s and have the double-click trigger the item # being copied and pasted to a new word document, with each subsequent double-click pasting to the newly created word doc as a delimited list with a comma separating each number.  Also hoping for a validation that prevents duplicates.  

 

So, for example a user opens the word document, double-clicks on "1234", a new word document, call it "List", opens with "1234" pasted at the top.  If the user then goes and double-clicks "5678", it will paste that into the "List" doc so that the list doc reads "1234, 5678".  If the user is then to double-click "5678" again, it would recognize that this is a duplicate and not paste to the "List" doc a second time. 

 

All of the item #'s in the document are hyperlinked/underlined if that helps for identification.  

 

I'm pretty clueless when it comes to Macros and could use some help, if anyone is able to assist. 

 

Thank you VERY much!

0 Replies