+ Reply to Thread
Results 1 to 4 of 4

Pointing out cells based on critiria

  1. #1
    Forum Contributor
    Join Date
    05-06-2004
    Posts
    117

    Pointing out cells based on critiria

    Hello to all. Not quite sure how to go about this. Looking for some help and grateful for any assistance. I am looking to have a macro perform a check. I have data in column K8:K600. I would like to look at each cell in this column and if the result of a previous cell is different than the next, I would like the macro to do the following: If previous cell is 1 and current cell is 0, take name in same row column B and ask if that name is UNAVAIL. If previous cell is 0 and current cell is 1, then ask if the name in same row column B is AVAIL.
    If the answer is YES, then continue checking rest of cells in column K. If answer is NO, than stop and post message to fix entry. I know that I am asking for alot, but I am truly grateful for any help that might be given.
    Thank you.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    The next code may do what you need:

    The macro compare each row with the next row; if in current row, column 'k' there is '1' and in next row, columns 'k' there is '0' then macro see the value of next row, column 'B'; if the value is 'UNAVAIL' then a prompt ask if continue check and if the answer is no then select the next row, column B and stop the check.

    Please Login or Register  to view this content.
    I hope it can help you.

    Regards,
    Antonio

  3. #3
    Forum Contributor
    Join Date
    05-06-2004
    Posts
    117
    Thank you for the response. You have helped me immensely. I appreciate the time

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Glad to know it helped you to fix your problem.

    Have a nice time.

    Regards,
    Antonio

+ 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