I want a macro that will not mess up if rows are deleted...

  • I am trying to create macro to find specific text "Prior Month Premium" and then check cell to the right to see if left empty and if so then Msgbox the user to enter missing info. Here's what I got so far which is specific to certain cells being populated...


  • Re: I want a macro that will not mess up if rows are deleted...


    Hi, moore.1671,


    please wrap your cod ein tags.


    Maybe your code could be simplified to


    because I doubt a loop through a single cell will not really be help.


    Ciao,
    Holger

  • Re: I want a macro that will not mess up if rows are deleted...


    Hi, moore.1671,,


    no need to quote the full post.


    The code does not go behind Sheet("Statement") but goes into ThisWorkbook in order for the event to get fired.


    You should copy the code from here and paste it into ThisWorbook as the code you used should raise an exception.


    Ciao,
    Holger

  • Re: I want a macro that will not mess up if rows are deleted...


    One more thing. now that the macro is searching for specific text how do i get it to stop once the cell to the right has a value and is no longer empty?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!