+ Reply to Thread
Results 1 to 5 of 5

Loop through Column and return message box if criteria is met.

  1. #1
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    237

    Loop through Column and return message box if criteria is met.

    I want to search through Col B in my file, and if it finds "9999-99" in a cell, I want a message box to pop up that gives a message and stops the macro. If there are no cells with "9999-99" in column B, then I want it to finish the macro as usual. I don't know how to write the loop statement to do that. File is attached.

    My macro is housed in a different workbook, but this is the file that it will review.
    Attached Files Attached Files
    Last edited by narrowgate88; 04-30-2013 at 11:09 AM.

  2. #2
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: Loop through Column and return message box if criteria is met.

    Try this..

    Please Login or Register  to view this content.
    Thanks!
    Raga.

    Please,mark your thread [SOLVED] if you received your answer.

    Click the little star * below, to give some Rep if you think an answer deserves it.

    I learnt so many things from these links.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Loop through Column and return message box if criteria is met.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    237

    Re: Loop through Column and return message box if criteria is met.

    Both of these worked. Thank you!

  5. #5
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: Loop through Column and return message box if criteria is met.

    Please,mark your thread [SOLVED] if you received your answer.

    Click the little star * below, to give some Rep if you think an answer deserves it.

+ 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