Not sure if this is what you mean, but in VBA you could use something like this, which would select all cells with constants (text/number/errors/logical values entered manually, not using formulas) in the range A1:Z100:
Code:
Range("A1:Z100").SpecialCells(xlCellTypeConstants, 23).Select
Or this, to select all cells with formulas that result in text/numbers/errors/logicals:
Code:
Range("A1:Z100").SpecialCells(xlCellTypeFormulas, 23).Select
These perform the same function as using F5-->Special-->Constants or F5-->Special-->Formulas.