Hello everyone,
I have a macro that I wrote that duplicates a selected range at some position in my worksheet. The position is selected based on informations given by the user through an UserForm's ListBox. This macro works well and I would now like to determine its runtime depending on the insertion position in the worksheet.
I would like to write a second macro that would run the first one, select a different item in the ListBox of the UserForm each time and then write down the execution's duration in a worksheet to calculate the average and check the evolution as the insertion position increases.
But is this even possible ? How would the second macro know the first's UserForm is active and take control over it ?
Any ideas ?
Thank you for reading,
Marie
I have a macro that I wrote that duplicates a selected range at some position in my worksheet. The position is selected based on informations given by the user through an UserForm's ListBox. This macro works well and I would now like to determine its runtime depending on the insertion position in the worksheet.
I would like to write a second macro that would run the first one, select a different item in the ListBox of the UserForm each time and then write down the execution's duration in a worksheet to calculate the average and check the evolution as the insertion position increases.
But is this even possible ? How would the second macro know the first's UserForm is active and take control over it ?
Any ideas ?
Thank you for reading,
Marie