0
 While ActiveCell.Value <> "Console Foreman"
     ActiveCell.Offset(1, 0).Activate
 End While

For some reason I'm getting a syntax error for "End While". I have no idea why. The purpose of the While loop is to go down by one cell every iteration and check to see if the cell contains the string "Console Foreman", if it encounters that string I want to break the loop. This is my first While loop I've made in VBA and I assume I'm just making a silly error, although after trying different things, still cant figure it out.

Thanks for helping out a n00b ;)

Community
  • 1
  • 1
LiCarroll
  • 7
  • 4

0 Answers0