Hi Excel Forum
I thought I at least had a kindergarten type understanding of VBA, but something is tripping me up here and I suspect I shall deserve to be bopped on the head with a saucepan when the solution is explained to me.
The following code searches Column A for a cell that contains a string equaling the one stored in drop_point. (Since I'm not experienced at VBA I'm putting this program together in baby steps and using MsgBox way too often just to make sure, at this point, that I'm working with the cells I think I am.)
dp2_cell has already been declared as an Object; drop_point as a string, and dp_search and sheet1_row_counter as integers.
The cell we're hoping to land on is A2. Indeed, when this code runs, things seem to stop happening when A2 is highlighted. That's the good news. However, since the "wrong" value is in A1, I expected to see a MsgBox pop up saying "Not it!" and thus for me to have to click its OK button before anything else moved forward. Instead what happens is, I see no MsgBoxes. Neither the "Not It" one when cell A1 is being checked, nor the "Found It!" one when A2 has been reached and everything else stops.
What. The heck. Am I missing here.
Bookmarks