+ Reply to Thread
Results 1 to 6 of 6

Removing all rows with word yes populated and pasting to new sheet

  1. #1
    Forum Contributor mccrimmon's Avatar
    Join Date
    02-19-2004
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    249

    Removing all rows with word yes populated and pasting to new sheet

    Hi

    Im wondering if you can help with what im trying to achieve.

    I have a spreadsheet with a list of tasks on it (around 600 rows in excel)

    Every cell in column AD is currently populated with the word NO.

    Once each task is completed the word YES is typed into each row starting on Cell AD7.

    I then was looking to have a macro button that we can press at the end of each day and it removes all the rows which have a Yes populated in column AD and paste them into a seperate sheet called "Completed Tasks" so it leaves only the outstanding tasks on the sheet "Outstanding Tasks"

    These tasks can be completed in any order so cell AD450 could be populated with a YES and cell AD10 could still be sitting as NO.

    Can this be achieved? Can someone help me out on this.

    Cheers

    McCrimmon
    McCrimmon

  2. #2
    Forum Contributor boylejob's Avatar
    Join Date
    02-22-2007
    Location
    Forest City, NC
    MS-Off Ver
    2003
    Posts
    562
    McCrimmon,

    Give this a try and see if it does what you are wanting.

    Starts at the bottom of the Outstanding Tasks sheet and looks at each row up through row 7. If the value in Column AD of that row is equal to "YES" then that row is moved to the Completed Tasks sheet and deleted off of the Outstanding Tasks sheet.
    Please Login or Register  to view this content.
    Sincerely,
    Jeff

  3. #3
    Forum Contributor mccrimmon's Avatar
    Join Date
    02-19-2004
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    249
    Beautiful work my friend!

    Works a treat!

    Im in the process of learning VBA so hopefully in the next month or so I will be up to scratch and not be posting on this forum unless its to help someone else

  4. #4
    Forum Contributor boylejob's Avatar
    Join Date
    02-22-2007
    Location
    Forest City, NC
    MS-Off Ver
    2003
    Posts
    562
    McCrimmon,

    Wonderful! I'm glad it worked and I could be of service.

    Just out of curiousity, where are you located. I always find it interesting to see where in this small world questions come from.

  5. #5
    Forum Contributor mccrimmon's Avatar
    Join Date
    02-19-2004
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    249
    Quote Originally Posted by boylejob
    McCrimmon,

    Wonderful! I'm glad it worked and I could be of service.

    Just out of curiousity, where are you located. I always find it interesting to see where in this small world questions come from.
    Edinburgh in Scotland.

    Jeff - Could you do me a favour if possible and provide me some information as to what each line does? As I said above, im new to VBA and still trying to find my feet with the who program.

    Thanks again

    Much appreciated!

  6. #6
    Forum Contributor boylejob's Avatar
    Join Date
    02-22-2007
    Location
    Forest City, NC
    MS-Off Ver
    2003
    Posts
    562
    McCrimmon,

    Here is the code description that you asked for. I hope it all makes since, but if it doesn't, please don't hesitate to ask me about anything you don't understand.

    Please Login or Register  to view this content.
    I have been programing in VBA for about 7 or 8 years now. I just recently found this forum and it is absolutely fantastic. It is amazing what I have learned and how much better my code it now. If you are not sure about something don't hesitate to post to this list. There are some very talented folks monitoring this forum and you will almost always get an answer.

    I started out asking questions and then decided to see if I could answer a few. Mudraker told me that answering question helped him learn even more and he was absolutely right. I have learned all kinds of new things simply by answering questions. There are often several ways of accomplishing the same task and by asking a question you might find an easier way of doing something. So ask question!!!!

+ 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