Do I need ExcelAsyncUtil.QueueAsMacro in find, findNext or access Column, Row on a Range instance?

Jun 30, 2015 at 8:12 PM
I have the following 3 code sections. I wonder if I really need ExcelAsyncUtil.QueueAsMacro
and how much cost (slow down) will it be? Thanks
I remember only when I need write to a Range do I need use ExcelAsyncUtil.QueueAsMacro
but I can;t remember clearly. thanks
1.   var flagForFindFirst = new AutoResetEvent(false);
        ExcelAsyncUtil.QueueAsMacro(() =>
        {
            firstOccurence = cells.Find(functionPattern, null,
                null, null,
                XlSearchOrder.xlByRows,
                XlSearchDirection.xlNext,
                null, null, null);
            flagForFindFirst.Set();
        });
        flagForFindFirst.WaitOne(Helper.WAIT_SIGNAL_TIME);


        2.    var flagForFind = new AutoResetEvent(false);                               
                ExcelAsyncUtil.QueueAsMacro(() =>
                {
                    currentOccurence = cells.FindNext(currentOccurence ?? firstOccurence);
                    flagForFind.Set();
                });
                flagForFind.WaitOne(Helper.WAIT_SIGNAL_TIME);
  1.     var flagRangeEqual = new AutoResetEvent(false);
        ExcelAsyncUtil.QueueAsMacro(() =>
        {
            ret = (r1.Column == r2.Column && r1.Row == r2.Row);
            flagRangeEqual.Set();
        });
        flagRangeEqual.WaitOne(Helper.WAIT_SIGNAL_TIME);