+ Reply to Thread
Results 1 to 2 of 2

conditional copy/paste

  1. #1
    Registered User
    Join Date
    08-20-2007
    Posts
    10

    conditional copy/paste

    Hi,
    I created a template spreadsheet with a macro that is supposed to take individual patient sample data from one sheet and paste it in a certain way in the other sheets. Each row has a sample name/info and a numerical code (1,2,3), which will be the basis of how each sample is treated. The codes and positions of the codes will change each time I run the macro. I made a macro that I thought was doing this, but it still chooses the same original rows (not based on only what is active after applying the filter) that were selected during the recording of the macro. Basically, I need to filter the sample info by code and only copy the material filtered, which will change each time. Then, in one of the sheets, I need to go to the next blank cell and paste the info there. How can I do this?
    Thanks in advance!
    Jenny

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    If you recorded your macro you may have a line which selects a defined range of cells followed by a Selection.Copy line.

    If you remove the defined range line and leave the Selection.Copy line, you should have something more generic.

+ Reply to Thread

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