+ Reply to Thread
Results 1 to 4 of 4

Not even sure how to ask this one.. separate sheets for rows of data, based on a cell

  1. #1
    Registered User
    Join Date
    11-08-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Lightbulb Not even sure how to ask this one.. separate sheets for rows of data, based on a cell

    Hey everyone.

    I am kinda new, well back into the scene here. im having trouble refreshing my memory as it has been several years since playin in excel.

    I have a workbook, that contains a list of all of our accounts.

    in the workbook, I have sheets all named after states.

    what I am trying to do is get a script, to put on a button, that does the following.

    copy rows from sheet Stores-full, and paste in to the sheet that matches the state from col G
    ie. on stores-full sheet, I have these headers. Billing State/Province is Column G


    Account ID Account Name Account Phone Account Type Billing City Billing Country Billing State/Province Billing Street

    if in Billing State/Province the value is CA, then copy the row to Sheet CA
    if in Billing State/Province the value is AZ, then copy the row to sheet AZ


    is there a way to do this easily?
    All the sheets are created already.

    Thanks again
    Last edited by MR.MYSIS; 01-02-2014 at 03:32 PM.

  2. #2
    Registered User
    Join Date
    11-08-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Not even sure how to ask this one.. separate sheets for rows of data, based on a cel

    Please Login or Register  to view this content.

    this is what im at, however, stuck as it wont work. .....
    Last edited by arlu1201; 01-03-2014 at 12:58 AM.

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

    Re: Not even sure how to ask this one.. separate sheets for rows of data, based on a cel

    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. In order to put code tags, either type [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] at the end of it, OR you can highlight your code and click the # icon at the top of your post window.
    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]

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Not even sure how to ask this one.. separate sheets for rows of data, based on a cel

    Hi MR.MYSIS,

    welcome to the forum!!

    As long as the sheet tabs in Col. G exist in the workbook, the following will do the job:

    Please Login or Register  to view this content.
    Bear in mind that you can generally get away from doing this by simply filtering the data on the source tab (Stores-full in this case).

    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

+ 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. Sort data to separate sheets based on criteria
    By kmahan71 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-11-2012, 05:03 PM
  2. Replies: 1
    Last Post: 05-10-2012, 11:33 AM
  3. Rows copied to Sheets based on cell data
    By rdubya in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2011, 06:56 AM
  4. Replies: 4
    Last Post: 11-22-2010, 12:57 PM
  5. Replies: 3
    Last Post: 08-12-2010, 03:45 PM

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