+ Reply to Thread
Results 1 to 7 of 7

Sorting and segregating alphanumeric code using VBA

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    Kathmandu, Nepal
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    26

    Sorting and segregating alphanumeric code using VBA

    Dear Friends & Experts,

    I've a problem in sorting alphanumeric data in excel 2007 and automatically segregating it in two sheets "New_Clients" & "Old_Clients". I've written all the needed information in the word document attached with the workbook. I want it to segregate and manage the data automatically as soon as I fill it in the "Master_Sheet" Randomly.

    Thank you in advance.


    sorting alpha numeric code.xlsxDescription of Sorting alpha numeric code.docx


    Subash

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sorting and segregating alphanumeric code using VBA

    Hi SubashP

    Let me look at it for a bit...get back to you ASAP.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Sorting and segregating alphanumeric code using VBA

    After transferring the data from the Master_Sheet to New and Old client sheets, do you want Master_sheet to be cleared? i.e. once a row for a new client from master sheet is transferred to the new client sheet, do you want to delete this row from the master sheet?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    09-18-2012
    Location
    Kathmandu, Nepal
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    26

    Re: Sorting and segregating alphanumeric code using VBA

    Quote Originally Posted by sktneer View Post
    After transferring the data from the Master_Sheet to New and Old client sheets, do you want Master_sheet to be cleared? i.e. once a row for a new client from master sheet is transferred to the new client sheet, do you want to delete this row from the master sheet?
    Sir, initially thank you for your reply.
    If possible I want the data to be as it is in Master sheet.
    If it creates any problem doing so it can be cleared once it is transferred to "New Clients" sheet or "Old Clients" sheet.
    But I don't want it to be as a user form type because I've to paste huge number of data received from my colleagues which will not be possible by filling data one by one.

    Thank you in advance.


    Subash

    Regards,
    Last edited by SubashP; 11-06-2014 at 02:42 PM.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Sorting and segregating alphanumeric code using VBA

    Please find the attached sheet. There are two codes for Worksheet_Activate Events and can be found on the New_Clients and Old_Clients Sheet Modules.
    The code follows the following logic is......
    1) Once you paste your data in the Master_Sheet and activate either New_Clients Sheet or Old_Client Sheet, the related data is transferred to the activated sheet (New or Old client sheet).

    2) After the data is transferred from the Master Sheet to the one of other two sheets (New or Old sheets), data is cleared from the Master Sheet and is copied to the one more sheet called Backup_Master_Sheet.

    See if this helps.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-18-2012
    Location
    Kathmandu, Nepal
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    26

    Re: Sorting and segregating alphanumeric code using VBA

    Quote Originally Posted by sktneer View Post
    Please find the attached sheet. There are two codes for Worksheet_Activate Events and can be found on the New_Clients and Old_Clients Sheet Modules.
    The code follows the following logic is......
    1) Once you paste your data in the Master_Sheet and activate either New_Clients Sheet or Old_Client Sheet, the related data is transferred to the activated sheet (New or Old client sheet).

    2) After the data is transferred from the Master Sheet to the one of other two sheets (New or Old sheets), data is cleared from the Master Sheet and is copied to the one more sheet called Backup_Master_Sheet.

    See if this helps.
    Thank you very much for your valuable time to solve the problem.

    It's working great and has solved a very big problem I was facing.

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Sorting and segregating alphanumeric code using VBA

    You're welcome and thanks for the feedback as well.

+ 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. Sorting Alphanumeric code with the only numbers displayed at last using VBA
    By SubashP in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-31-2014, 06:48 AM
  2. AlphaNumeric sorting
    By bmoney26 in forum Excel General
    Replies: 1
    Last Post: 04-23-2012, 05:37 PM
  3. Alphanumeric sorting
    By mj_bowen in forum Excel General
    Replies: 4
    Last Post: 10-16-2011, 12:35 PM
  4. Excel 2007 : Alphanumeric sorting
    By Ethan Cordray in forum Excel General
    Replies: 2
    Last Post: 10-11-2010, 12:26 PM
  5. Excel 2007 : Alphanumeric Sorting
    By melhalp in forum Excel General
    Replies: 4
    Last Post: 03-01-2010, 07:16 AM

Tags for this Thread

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