Re: returning #N/A to Excel via UDF

Steven Manross <[email protected]>
Newsgroups gmane.comp.python.windows
Message-ID <[email protected]>
While I don’t have any useful suggestions here…  I thought I would link the thread I found in the xlwings github thread that the author looks to have been working on with them already.

https://github.com/xlwings/xlwings/issues/776

HTH

Steven
From: python-win32 <[email protected]> On Behalf Of Sébastien de Menten
Sent: Wednesday, November 17, 2021 1:12 AM
To: python-win32 <[email protected]>
Subject: [python-win32] returning #N/A to Excel via UDF

I would like to return #N/A values to excel via an UDF written in python (via xlwings)

Returning a `VARIANT(pythoncom.VT_ERROR, 2042)` from the UDF results in an empty cell.
Is there within pywin32/pythoncom an equivalent of VBA `CVErr(xlErrNA)` ?

Sébastien

_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.