Results 1 to 5 of 5

Thread: (Resolved)Basic VBA program for Comparing, Sorting, and Reformating

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2012
    Posts
    13

    (Resolved)Basic VBA program for Comparing, Sorting, and Reformating

    VBA Example.zipHey guys,

    I'm trying to compare a new spreadsheet of data with an old one and figured it would streamline the process if I could automate it via macro. Each spreadsheet has a column of part #'s, I would like to compare the new column of part #'s with the old row to see if the number has been listed before. After the number is compared I would like one of three things to happen. First, if it hasn't been seen before I would like the row containing the new part # to turn yellow. If it has been seen before I would like to check a Y/N column in the old spreadsheet and have the row in the new spreadsheet to turn green if Y and red if N. Finally, I'd like to sort the new spreadsheet by row color to make it easier to process. I've attached a file to show a basic example of what I'll be starting with. I know this is probably really simple stuff for the veteran VBA programmers out there, but I'm basically completely new to VBA and could really use some help! Thanks in advance!
    Last edited by Nctukek; Jul 3rd, 2013 at 08:04 AM. Reason: Attachment

  2. #2
    PowerPoster
    Join Date
    Oct 2008
    Location
    Midwest Region, United States
    Posts
    3,574

    Re: Basic VBA program for Comparing, Sorting, and Reformating

    If you can zip it, you can attach it.

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2012
    Posts
    13

    Re: Basic VBA program for Comparing, Sorting, and Reformating

    Quote Originally Posted by vbfbryce View Post
    If you can zip it, you can attach it.
    I'm sorry but all I could think is 'If you zip it, they will come...'

    I've edited my first post to include the attachment. Thanks for the tip!

  4. #4
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    5,262

    Re: Basic VBA program for Comparing, Sorting, and Reformating

    There you go
    Attached Files Attached Files
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 2012
    Posts
    13

    Re: Basic VBA program for Comparing, Sorting, and Reformating

    Worked like a charm! Thanks for the help!

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width