Results 1 to 5 of 5
  1. #1
    5 Star Lounger
    Join Date
    Aug 2001
    Location
    Surrey, United Kingdom
    Posts
    1,001
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Morning all

    I was sure that a solution to my problem had been asked a short while ago but I can't seem to find it, I have tried 'Find Data'. 'Move Rows' etc. without any joy. Can anybody help with the following please.

    I am going to be sent spreadsheet every month with a column called 'Service' which will contain service codes but they will not be constant every month. An example may be

    INTL-UK
    UK-UK
    HOS-UK
    IIE-UK
    IIN-SG

    What I would like to achieve is to be able to search a specific column and then move all rows whose column I have specified to a new worksheet named after the column search.

    For example, search for UK-UK, 53 records identified, new worksheet created called UK-UK, 53 records copied or deleted and moved.

    Any pointers please
    Cheers

    Steve

    Asking the questions everbody wants the answers too but feels too stupid to ask themselves :-)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    See if you can adapt the code from Seperate Data (the attachments in that topic have been lost, but the code is still available).

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    See Advanced Usage Help for tips on how to enter search criteria.

  4. #4
    5 Star Lounger
    Join Date
    Aug 2001
    Location
    Surrey, United Kingdom
    Posts
    1,001
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Hans

    Thanks for the response, I am on a course this week so will have a proper try with the example when I am on holiday next week. I did have a quick try and changed the worksheet name in the code and it erased everything in the workbook, luckily it was a copy, phew.
    Cheers

    Steve

    Asking the questions everbody wants the answers too but feels too stupid to ask themselves :-)

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    The code will have to be adapted for your purposes. I don't understand your question well enough to suggest how, I'd need to have more information.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •