excel - Force format of data input by user as text -


i have excel sheet user can enter data several cells. want data treated strings, regardless if user enters "hello" or "123" or "12.12.2012".

i partially resolve issue formatting input cells "text". if user enters number such "123" or string looks date ("12.12.2012"), appears small green rectangle , excel says number stored text, that's want. same thing text "1.2.90" in cell a5 seen excel "date stored text". text "aa" in cell a4 ok.

when click on exclamation mark icon, can choose ignore "error", removes green triangle, change content of cell putting number, green triangle appears again.

enter image description here

green field formatted "text"

is there way force excel leave data entered string ?

non vba version

you can switch off error tracking file tab. read it, check ms link.

vba version

to using vba, need switch off backgroundchecking using application.errorcheckingoptions.backgroundchecking

example

application.errorcheckingoptions.backgroundchecking = false 

you can read more here


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -