+ Reply to Thread
Results 1 to 4 of 4

help with a logic test

  1. #1
    Registered User
    Join Date
    05-25-2010
    Location
    ny,ny
    MS-Off Ver
    Excel 2003
    Posts
    3

    Exclamation help with a logic test

    I need a logic test to run in a macro. I have a colum where alot of the cells start with a number and at some point probably 200 rows down the data starts with a letter, like below

    123456
    234567
    3456789
    123789
    a123asd
    avb456
    aeb456

    I want the logic test to find the end of this list and cut out that part so that the macro can paste it to another sheet. Is this possible?

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: help with a logic test

    Maybe something like this:

    Please Login or Register  to view this content.

    This assumes there will always be a row starting with a letter.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Contributor
    Join Date
    04-16-2009
    Location
    Dorset, UK
    MS-Off Ver
    Office 2003, Office 2007
    Posts
    131

    Re: help with a logic test

    OK, here's some code that looks down a list in column A of the first sheet until it finds a cell with data that starts with a letter. It then gets everything from there down to the end of the list, cuts it out of the first sheet and pastes it at the top of column A of the second sheet.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-25-2010
    Location
    ny,ny
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: help with a logic test

    .... I spent about 3 hours trying to figure this out, and nothing... thanks guys!

+ 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