Consulting

Results 1 to 4 of 4

Thread: Transfer data to another worksheet only if "Column A" has any value entered

  1. #1
    VBAX Newbie
    Joined
    Dec 2011
    Posts
    3
    Location

    Transfer data to another worksheet only if "Column A" has any value entered

    I have a workbook with 2 worksheets - "Customers" and "Orders." What I need is to transfer rows of data from the "Customers" worksheet to the "Orders" worksheet ONLY if "Column A" has an entry in it. If there is no entry in "Column A," I do not want to transfer the data. To complicate to matter I need only selected columns transferred. I need Columns A, H, J, B, and D from "Customers" transfer to the "Orders" worksheet to appear in this particular order: A, H, J, B, D. Any help or suggestions would be greatly appreciated. Thanks, Chris

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Use AUtofilter on column A, then copy and paste the visible rows.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Newbie
    Joined
    Dec 2011
    Posts
    3
    Location
    Thanks, but that is not going to put the columns in the order that I need.

  4. #4
    VBAX Newbie
    Joined
    Dec 2011
    Posts
    3
    Location
    The Worksheet "Customers" has 22 columns on it. I only want to copy 8 of those columns onto the "Orders" worksheet but in a different order. I only listed 5 columns in the original post. Once I see how the code is written I will be able to add the other columns. Thanks, Chris.

Posting Permissions

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