Results 1 to 5 of 5

copying data using an array with criteria

Threaded View

  1. #1
    Registered User
    Join Date
    04-16-2007
    Posts
    5

    Exclamation copying data using an array with criteria

    I have a sheet, for sake of example lets say it looks like this:

    Name Patient# Hair Color Eye Color
    John 1 Brown Blue
    Mary 3 Blonde Green

    Lets call the sheet "TodaysPatients".

    I have sorted "TodaysPatients" according to patient#.

    I have another sheet calls "Patients" with all patient #s from 1 - 50 listed in column A.

    Problem: I want to take all the rows from "TodaysPatients" and copy them to "Patients" lining up their Patient Numbers. To make the the problem more complicated, I ONLY want to copy columns 1 and 3 and put them in colukmn 2 and 3 on the "Patients" sheet.

    Iw ould like ot do this in an array to avoid multiple changes from VBA to excel and many sheet changes.


    I need to do this all in VBA. PLEASE PLEASE PLEASE help!!

    Thanks in Advance!
    Last edited by Shylie; 04-16-2007 at 05:44 PM.

Thread Information

Users Browsing this Thread

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

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