+ Reply to Thread
Results 1 to 7 of 7

VBA to pull data from worksheet to a new sheet based on specific text cell value

  1. #1
    Registered User
    Join Date
    01-06-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    39

    VBA to pull data from worksheet to a new sheet based on specific text cell value

    Hi Guys,

    I need some help with this one.

    I have a sheet with 11 Columns and around 800-2000 rows of data. Now I need a VBA that will pull rows based on the name in the B column. You will notice in the data attached that each of the names in Column B have several rows. The data needs to be pulled and pasted into a sheet that will be named based on that value. This will need to be made so that it can be transferred to other workbooks as well as I have several workbooks like this one.

    Thanks a million!
    Last edited by TalResha; 06-01-2011 at 09:37 AM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: VBA to pull data from worksheet to a new sheet based on specific text cell value

    hi, TalResha, please check attachment, run code "test", enter value from column B.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-06-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    39

    Re: VBA to pull data from worksheet to a new sheet based on specific text cell value

    Works like a dream!!

    Thank you watersev!!

  4. #4
    Registered User
    Join Date
    12-07-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: VBA to pull data from worksheet to a new sheet based on specific text cell value

    Quote Originally Posted by watersev View Post
    hi, TalResha, please check attachment, run code "test", enter value from column B.
    Watersev,

    I have a similar setup as TalResha and I tried to adapt your code to my situation but I can't get it to work right. When it creates the new sheet, the header of the columns I want are there but none of the data is. I was hoping you could take a look, if you have time, and tell me where I am going wrong...

    I hope you don't mind posting your code here, if you do respond telling me and I will remove it:

    Please Login or Register  to view this content.
    I colored the changes I made in red.

    I'm very green to VBA as this is literally my first time attempting to use it.

    I attached a sample of my spreadsheet. In a nutshell, it is a project tracker for projects I bid on, so there are only 4 columns: Date (Col A), Project Name (Col B), Who I Bid To (Col C), & Outcome (Col D). I would like to create a new sheet with all the projects labeled "Lost" in column D, with the the respective information for each project's row in Columns A, B, & C.

    Bid Tracker Example.xlsx

    Any insight would be greatly appreciated...
    Last edited by arlu1201; 12-10-2012 at 02:20 PM.

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA to pull data from worksheet to a new sheet based on specific text cell value

    Sepicda,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  6. #6
    Registered User
    Join Date
    12-07-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: VBA to pull data from worksheet to a new sheet based on specific text cell value

    Arlu1201,

    My apologies. I will be sure to use code tags henceforth.

  7. #7
    Registered User
    Join Date
    09-06-2013
    Location
    iran
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: VBA to pull data from worksheet to a new sheet based on specific text cell value

    Dera Sir
    Many thnaks for your Good answer.

+ 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