+ Reply to Thread
Results 1 to 3 of 3

VBA code to copy paste a range based on a condition

  1. #1
    Registered User
    Join Date
    04-28-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    81

    VBA code to copy paste a range based on a condition

    HI,

    I have a workbook with columns A,B,C, D and E

    A3 is program ,B3 is department,C3 is date ,D3 is class and E3 is Subclass.
    The data is present only for columns A,B and C i.e it starts from A4 and ends at C25 for the first program

    This is followed by headings again in A26,B26,C26,D26 and E26.
    again followed by data below them.The range varies from program to program

    I want to write a VBA code which copies the first program data into the 2nd tab.
    the 2nd program data into the 3rd tab and so on.


    Thank you so much in advance.

  2. #2
    Registered User
    Join Date
    04-28-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: VBA code to copy paste a range based on a condition

    Example
    Program Dept Date class Subclass
    055 055 12/03/2013
    062 055 20/03/2014
    052 055 21/02/2014
    Program Dept Date class Subclass
    123 071 12/03/2013
    156 071 21/02/2014

    In this example the first program data needs to be pasted in the second tab and the second program data needs to be pasted in the third tab and so o

  3. #3
    Registered User
    Join Date
    04-28-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: VBA code to copy paste a range based on a condition

    The line numbers of data in a particular program could vary

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Code to copy and paste a row into another sheet of the workbook when a condition is met.
    By oldboots in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2013, 03:03 AM
  2. VBA code to copy and paste range based on separate cell value
    By Mhofu in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-01-2012, 03:03 PM
  3. Copy paste based on a condition
    By jay36429 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2011, 01:36 PM
  4. Copy-Paste range based on condition
    By Link in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2011, 01:10 PM
  5. Code: Copy and paste based on condition
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2010, 10:45 AM

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