+ Reply to Thread
Results 1 to 8 of 8

Need VBA to auto copy data from one sheet to specific on based of Staus

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    3

    Need VBA to auto copy data from one sheet to specific on based of Staus

    I have an excel file with 06 worksheets. I fill data in 01 sheet "Data". I want that on the basis of 'Status column' on 'Data sheet' the data automatically copies to their respective sheets.

    Technology RBO ITEM Qty Estimated Value Customer Status
    Litho Sears Belly Bands 60,000 $6,000.00 abc Universe
    Litho Target-Threshold Belly Band 60,000 $5,000.00 abc Above Funnel
    HTL Target-Threshold HTL 60,000 $54,000.00 abc In Funnel
    FG Aeropostale Pico Patch 60,000 $54,000.00 def Best Few

    urgent help required to do this task.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Need VBA to auto copy data from one sheet to specific on based of Staus

    The first of your two lines explained what you want, but then below you have included some data with no explanation.

  3. #3
    Forum Contributor
    Join Date
    10-08-2006
    Location
    Walnut, CA
    MS-Off Ver
    2003,2010, Office 365
    Posts
    114

    Re: Need VBA to auto copy data from one sheet to specific on based of Staus

    Add the sub & function and run CopyonStatus
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Need VBA to auto copy data from one sheet to specific on based of Staus

    If the task is simpley to create tabs, here is another option
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-04-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Need VBA to auto copy data from one sheet to specific on based of Staus

    Dear AB and Tony,

    This will not resolve my issue.
    I am explaining here the detail.

    I have 04 sheets named 'Best Few', 'In Funnel', 'Above Funnel', 'Universe'.
    The 'Universe' sheet have all the rough data with the Status same as Sheet name.
    What i want that on the basis of that status the row data will auto copy into their respective tab.
    Kindly see the attached sheet for more clarification.

    Thanks and regards for help.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Need VBA to auto copy data from one sheet to specific on based of Staus

    Nadeem,
    My code creates individual tabs for each status in column "G". I do not know what you mean by auto. The code clears existsing data in each tab and then populate them with fresh data. All you need to do is press a button to run a macro. If this is not what you are after, I shall wait for the others to chip in.

  7. #7
    Registered User
    Join Date
    06-04-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Need VBA to auto copy data from one sheet to specific on based of Staus

    Dear TonyS,

    Your Macro code works really well. Just need to addon one more thing in this code that before copy data it is not clear the previous content. It again copy data.
    Kindly add the code to clear data from row 2 to onwards before copying to sheet.

    thanks.

  8. #8
    Forum Contributor
    Join Date
    10-08-2006
    Location
    Walnut, CA
    MS-Off Ver
    2003,2010, Office 365
    Posts
    114

    Re: Need VBA to auto copy data from one sheet to specific on based of Staus

    Change to
    Please Login or Register  to view this content.

+ 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