+ Reply to Thread
Results 1 to 3 of 3

VBA Code to copy a "criteria based" range of cells from worksheet A to worksheet B

  1. #1
    Registered User
    Join Date
    12-08-2010
    Location
    New York City, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    VBA Code to copy a "criteria based" range of cells from worksheet A to worksheet B

    I have a workbook with multiple spreadsheets. My goal is to create a marco to extract certain data from the master spreadsheet (see attachment) and pasted into these individual spreadsheets.

    As shown in the attached sample, I have a mastersheet which has all the data. Individual spreadsheets tabs named 1, 2, 3 (i.e, Car is tab 1, T&E tab 2, Entertainment tab 3).

    I want to create a macro copies cells C2:E5 (i.e., data for cars) to tab 1 (tab for cars) cell A1: C4 and so on. It will require loop functions as my actual spreadhsheet is a lot longer and have hundreds of categories.

    Does anyone know any simple codes to do that? Any help will be greatly appreciated!
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    12-08-2010
    Location
    New York City, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: VBA Code to copy a "criteria based" range of cells from worksheet A to worksheet

    Bump Up

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: VBA Code to copy a "criteria based" range of cells from worksheet A to worksheet

    It makes more sense to post a workbook, not an image.

    There's some code that I posted for a similar problem here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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