I'm not sure if this will help, as itβs a little difficult to say what your basic requirement is, but here itβs all the same:
Several effects on cell display:
- entered value if its constant
- calculation result if its formula
- cell format
- conditional cell format, if any
In the given example, the given formula =ROW()&COLUMN() , which returns the string result 22
You can make this display something else by applying a cell format,
for example, the format 0;0;0;Ov\e\r\ri\d\d\e\nt\ext will display any string value as Overridden text
This can be applied using VBA with
Range("B2").NumberFormat = "0;0;0;Ov\e\r\ri\d\d\e\nt\ext\s"
or
Range("B2").NumberFormat = "0;0;0;""Overridden texts"""
chris neilsen
source share