Hello,
I am trying to wrirte a simple IF statement in VBA code, but it has become more challenging than expected. I have a column (column D) within a work sheet called "custom cost sheet". Column D lists whether a cost is correct or not. I want to create a VBA code that will scroll through Column D in search for the word "incorrect cost", if the word exists I want a Msgbox to appear stating "cost error, fix cost and recalculate" and then stop the macro from continuing. I just want the Msgbox to appear for the first cell it finds containing "incorrect cost", not each cell. If the text is not found within the column, I want the macro to continue and finish running.
Any help with this would be extremely appreciated.
Thanks in advance!
Rene
Bookmarks