That should work, but you probably won’t be able to call it inside a worksheet function.
Are you trying from a ribbon button or macro?
-Govert
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/6782733a-4df4-4396-b73b-31280cb55bd0n%40googlegroups.com.