+ Reply to Thread
Results 1 to 3 of 3

How to make a macro that copies only the data within a range to another sheet?

  1. #1
    Registered User
    Join Date
    10-02-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    How to make a macro that copies only the data within a range to another sheet?

    Hi all,

    This ones seems so simple, but my Excel Marco skills are lacking.

    I have a data sheet like so:

    A B
    Name Grade
    Jim 82%
    Bob 90%
    Kelly 71%
    June 95%

    And I also have two cells which are designated as the low and high range. (ie C1 = 85% and C2 = 100%).

    I need help with the macro for the button that will copy only the rows to a new sheet that fit within the range. So in the example above, pressing the button will create this in a new sheet:

    A B
    Name Grade
    Bob 90%
    June 95%
    Last edited by joeyjoejoe; 11-12-2009 at 07:19 PM. Reason: solved

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: How to make a macro that copies only the data within a range to another sheet?

    You don't need a macro to do this, but one can be created if this is something you will being on a regular basis.

    Take a look at using Advanced Filter with criteria and the option to copy to another location. It will extract only the values that meet the criteria.

    See this link for help on Advanced Filter
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    10-02-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to make a macro that copies only the data within a range to another sheet?

    Ah, okay. I was about to try that, but I was worried that the formula (grades) would copy over and not the value. But it looks like the value copies over with Advanced Filter.

    Thanks!

+ 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