+ Reply to Thread
Results 1 to 5 of 5

Macro that goes through each row to find specific values and then creates a message box

  1. #1
    Registered User
    Join Date
    06-20-2014
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    3

    Macro that goes through each row to find specific values and then creates a message box

    Hi Everyone,

    I have a macro that goes through each row in a sheet and if a cell in Column D has "CIBC" and Column F has "FRN", a message box is supposed to appear. Everything is working except it stops the macro once the first CIBC FRN is found. I need it to continue through the whole sheet to find all the CIBC FRN. I have played around with it and nothing seems to be working, can you help?

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 06-20-2014 at 02:37 PM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro that goes through each row to find specific values and then creates a message bo

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-20-2014
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    3

    Re: Macro that goes through each row to find specific values and then creates a message bo

    This Macro would look through all the rows like I need but the message box does not have a Yes/No option. I want the workbook to close without saving if you click no and continue with the macro if you click yes. I have changed the macro to include the Yes/No option but now it is giving me a run time error. Looks like the loop isn't ending as it should (once the row is blank). Any ideas?

    Please Login or Register  to view this content.
    Last edited by abbigale; 06-20-2014 at 03:19 PM.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro that goes through each row to find specific values and then creates a message bo

    Please use code tags when posting.

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-20-2014
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    3

    Re: Macro that goes through each row to find specific values and then creates a message bo

    It was missing an "End IF" but now I am getting an error "Overflow". Can anyone help with this?

    Please Login or Register  to view this content.
    Last edited by abbigale; 06-20-2014 at 04:44 PM.

+ 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. Macro to find all specific values in column and replace adjacent cell values
    By dblock02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2013, 06:03 AM
  2. Replies: 1
    Last Post: 04-19-2013, 08:30 PM
  3. Macro to find specific data values in different worksheets
    By owalks22 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2013, 06:32 AM
  4. Macro That Creates Text Doc in specific folder based on cell value
    By stevedes7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-16-2009, 08:30 AM
  5. Message Box to find specific row then delete all others
    By mccrimmon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2008, 07:05 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