+ Reply to Thread
Results 1 to 10 of 10

Scan through cells, and distribute to appropriate alpha sheets

  1. #1
    Registered User
    Join Date
    11-16-2011
    Location
    ND
    MS-Off Ver
    Excel 2003
    Posts
    8

    Scan through cells, and distribute to appropriate alpha sheets

    Please see this thread: http://www.excelforum.com/excel-prog...ml#post2644420

    The following code goes through thousands of rows in my sheet named "source" and copies and pastes the rows throughout alphabetically named sheets like "#s", "A", "B", etc., but what if I wanted them to begin on a different column in sheet "A" like column "G"?

    Please Login or Register  to view this content.
    Last edited by jessegpierce; 11-28-2011 at 11:47 AM.

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Scan through cells, and distribute to appropriate alpha sheets

    please edit your post with Code tags...

    Just type [ code ] before the code and [ /code ]after -- don't include the spaces between the brackets as I have.

    Or, click "go advanced", highlight the code section, and click the '#" button.
    Last edited by GeneralDisarray; 11-28-2011 at 10:58 AM.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Scan through cells, and distribute to appropriate alpha sheets

    I don't really understand what you want, but try this.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-16-2011
    Location
    ND
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Scan through cells, and distribute to appropriate alpha sheets

    I had played around with that myself but it doesn't work. What I'm looking for is in "source", the code goes down column B and takes the first character of the string, and copys/pastes the entire row in the appropriate alphabetic sheet (that I have already made). For instance if B2 says "Craig" then it will copy row 2 to the "C" sheet and paste it in the first available row. What I'm looking for though is for it to do all of that but instead of pasting it starting in column A in the first row, start the row in G. The row from "source" will look identical but instead of it going from Columns A to M, it would start in G and go to S.

    Thanks in advance.

  5. #5
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Scan through cells, and distribute to appropriate alpha sheets

    Click edit and put code tags around your code in your first post.

    I assume you meant column G, not row G? Try this,

    Please Login or Register  to view this content.
    Last edited by JapanDave; 11-28-2011 at 11:47 AM.

  6. #6
    Registered User
    Join Date
    11-16-2011
    Location
    ND
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Scan through cells, and distribute to appropriate alpha sheets

    Quote Originally Posted by JapanDave View Post
    Click edit and put code tags around your code in your first post.

    I assume you meant column G, not row G? Try this,

    Please Login or Register  to view this content.
    Sorry about the code tags, they have been changed.
    I did mean Column G not row...
    I get an object defined error with the new code. Also, I'm not sure why the code has been changed to column C in the "source" sheet because column B is where it should be looking.

  7. #7
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Scan through cells, and distribute to appropriate alpha sheets

    Try This

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    11-16-2011
    Location
    ND
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Scan through cells, and distribute to appropriate alpha sheets

    Can't get this to work either. Object-defined error. I had myself tried with that number 7 for the column in the code and couldn't get it to work.

  9. #9
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Scan through cells, and distribute to appropriate alpha sheets

    This is a far as I can go without the code in a workbook to see what is happening..

  10. #10
    Registered User
    Join Date
    11-16-2011
    Location
    ND
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Scan through cells, and distribute to appropriate alpha sheets

    Quote Originally Posted by JapanDave View Post
    This is a far as I can go without the code in a workbook to see what is happening..
    Ok. Here is the url to download the original. The website was giving me an error when I tried to attach my .xls.
    https://docs.google.com/open?id=0B3W...U5ZGZhN2M1Zjg3

+ 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