Excel-DNA / ExcelDna

Excel-DNA - Free and easy .NET for Excel. This repository contains the core Excel-DNA library.
https://excel-dna.net
zlib License
1.29k stars 274 forks source link

Detect current thead is in macro context #603

Open savasozer opened 1 year ago

savasozer commented 1 year ago

Hi all, Is there any way to detect current thread is in macro context eg. ExcelAsyncUtil.QueueAsMacro. I can save a thread static flag in QueueAsMacro delegate. But this way does not work when ribbon button click or called from VBA macro.

Thanks