Question : Focus with copying filtered data in an async call

This is a bit tricky so bear with me.

We have a spreadsheet which uses a Thetica Analytics helpers with events. Basically once launched it creates asyncronous calls (6 at a time) to dll which crunches some numbers and returns an answer to a cell once it finishes. Once the the data is returned we make a database call to populate additional values for that row, and then use Copy/Paste Formula to add some formulas and then Copy/Paste Values on the entire row to "freeze" the data for that row.

Since these calls are  asyncronous the user has the ability to do other things while the data is being crunched. He can for example go to a different tab and look at summary data and then return to the original sheet. Everything is working fine until the user decided to filter the sheet.

With the sheet filtered (there are some hidden columns as well) the Copy/Paste Value falls and due to the error the focus returns to original sheet, which is the problem. Trapping the error with the On Error Resume Next does not work. Nor has attempting to read the currently Active sheet (it always assumes its on the sheet from which the analytics were launched).  

I am looking for a way to either:

1. Make the Copy/Paste Value work with filtered rows and hidden columns

Or

2. Trap the error so as to not grab focus in it does occur.

Thanks.

Answer : Focus with copying filtered data in an async call

Does not look like this is possible. I can Copy/Paste each individual cell, but that is slow. As a work around we currently leave the formulas 'as is'.

I will be asking for this quesiton to be closed.

Random Solutions  
 
programming4us programming4us