+ Reply to Thread
Results 1 to 6 of 6

Double click VBA to copy & paste to new list

  1. #1
    Registered User
    Join Date
    04-26-2013
    Location
    Harker Heights, TX
    MS-Off Ver
    Excel 2003
    Posts
    3

    Double click VBA to copy & paste to new list

    Hello everyone. I've been trying to find an answer to my question in an existing thread, but haven't been able to do so. I apologize if this has been previously addressed.

    I have a purchase order with all of our items and their corresponding item numbers set up. I've included a search box to limit results, as there are about 700 items included in the list. I would like to be able to search the item list, then double click on the item in the results to add to the actual PO. I am not good with VBA, but have pieced together a code that will copy a cell and paste it into the first line on the PO, but would like each subsequently clicked cell to be added to the next line.

    Also, it would be ideal if I could double click the item on the PO to remove it, and have the following items move up automatically (so as not to leave a blank row).

    Any help from the excel masters would be appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Double click VBA to copy & paste to new list

    explain better please
    I've included a search box to limit results - where ?
    then double click on the item in the results - where ?
    to add to the actual PO - where ?
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    04-26-2013
    Location
    Harker Heights, TX
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Double click VBA to copy & paste to new list

    The search box is in J4, the results are listed in cells J6 through J25. I would like to double click on the results listed and have them copied and pasted into cell D8, then D9, and so on.

    Also, if an item is added to column D from the results list, and the user then wants to remove it, I would like to be able to double click on a cell in column D and have that item deleted, and the rows shift up to eliminate the blank row.

    Thanks!

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Double click VBA to copy & paste to new list

    Modifying your current code does this do what you require?

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-26-2013
    Location
    Harker Heights, TX
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Double click VBA to copy & paste to new list

    You guys are amazing! Thank you so very much!

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Double click VBA to copy & paste to new list

    You're welcome. Glad to help out, and thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copy double-clicked cell to next empty row in different sheet with each double-click
    By erhathaway in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-25-2013, 12:06 AM
  2. Double-Click Function And Copy-Paste Value In Cell B2
    By FLani in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-25-2013, 02:46 AM
  3. [SOLVED] Double click to copy and paste value to first available row.
    By JO505 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2013, 05:37 PM
  4. [SOLVED] How to copy fr AU:AY & paste to O:S after double click at B in same row
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-14-2012, 03:34 PM
  5. List box Double Click Copy and remove item
    By thameem127 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2012, 05:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1