+ Reply to Thread
Results 1 to 3 of 3

Thread: Copy and Delete Data from One Sheet to another.

  1. #1
    Registered User
    Join Date
    11-05-2010
    Location
    Simi Valley, California
    MS-Off Ver
    Excel 2007
    Posts
    15

    Copy and Delete Data from One Sheet to another.

    A flat file of all open orders is exported from our accounting system into excel file. This file has hundreds of lines. We then take this file and manually select the orders we want our warehouse to ship. I would like to select the orders to ship and have a code copy these lines to another workbook (Req. Shipments) that keeps track of all orders selected to ship that year. From this point I need another code that removes all lines from the open order file that match with an order number on the (Req. Shipments) Workbook. This way it will make it impossible to duplicate orders. (needed because some orders still show open in our accounting system because it has not invoiced yet.) Any Solutions. Please see attachment.

    Example
    When I select Orders to ship i fill in the Ship Qty in Column F I then delete all other lines that are not shipping. After running this for a week or so I should be able to run the VBA and be left with only Orders that need to still be sent to my warehouse for shipping.

    This Would be a life saver. Sorry if its confusing. I don't know how to simplify what I'm saying.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    3,788

    Re: Copy and Delete Data from One Sheet to another.

    I don't really understand what you are asking. Perhaps you could add an illustration of your expected results?

  3. #3
    Registered User
    Join Date
    11-05-2010
    Location
    Simi Valley, California
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Copy and Delete Data from One Sheet to another.

    Sorry. Ok Basically I should have broken this down into 2 post.

    1. I need to select lines I want to ship and delete all others. I need VBA that copies all remaining lines to another workbook(workbook 2). Workbook 2 would keep an ongoing list. So new data copied over would have to paste below existing data.

    2. When I open up the Open order sheet I want to run a different code that would delete all lines that matched with lines in Workbook 2.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0