I have a requirement to write the value "#N/A" but as an error not the text.
I tried to use SetCell with value "#N/A" but it seems that excel will not recognize this cell as an error because when the file is opened with an excel in another language the value remains "#N/A" (In German for instance the value should be converted to "#NV")