on-internet
← Community

MS-Excel: Retrieve Row Number where VBA Function is located

Stack Overflow ·

I hope I'm asking this in the correct forum: I'm writing a UDF in VBA for MS-Excel; it basically builds a status message for the transaction on that row. It steps through a series of IF statements, evaluating cell values in different columns FOR THAT ROW. However, this UDF will reside in multiple rows. So it might be in C12, C13, C14, etc. How would the UDF know which row to use? I'm trying something like this, to no effect Tmp_Row = Application.Evaluate("Row()") which appears to return a null What am I missing here ? Thanking everyone in advance

Comments

Sign in or sign up to comment and upvote.

No comments yet.