Hi,
I am working on simplifying my code to make it easier to follow and check for errors, and I am wondering how often the suffix .Value is needed to determine the value of a cell reference.
I would imagine you need the .Value to assign variables (eg x = Cells (r, c).Value) but is it necessary for functions (eg Instr(Cells(x, y).Value, "String") - wouldn't just Cells(x,y) suffice)?
I'm pretty sure you'd need it for other purposes, eg textbox inputs, but is it needed in If statements (like If Cells (x, y).Value = "")?
Any advice on this would be much appreciated.
I am working on simplifying my code to make it easier to follow and check for errors, and I am wondering how often the suffix .Value is needed to determine the value of a cell reference.
I would imagine you need the .Value to assign variables (eg x = Cells (r, c).Value) but is it necessary for functions (eg Instr(Cells(x, y).Value, "String") - wouldn't just Cells(x,y) suffice)?
I'm pretty sure you'd need it for other purposes, eg textbox inputs, but is it needed in If statements (like If Cells (x, y).Value = "")?
Any advice on this would be much appreciated.
Last edited: