I am trying to set my string variable fasname to equal the value of the next non-blank cell to the right of the cell that is equal to my other string variable fasacct.
Here's what I've tried:
I've tested by replacing .Offset(0, xlToRight).Value with .Address to make sure it's finding the correct starting point and up to there everything is working. But that part with xltoright is giving me object-defined error. what do i put there instead?
Here's what I've tried:
Code:
fasname = hws.UsedRange.Find(fasacct).Offset(0, xlToRight).Value
I've tested by replacing .Offset(0, xlToRight).Value with .Address to make sure it's finding the correct starting point and up to there everything is working. But that part with xltoright is giving me object-defined error. what do i put there instead?