Hi all
I have some VBA code that gets an array from the web and puts it into Excel. Then I have some functions on that page in Excel and I want VBA to copy the results of the functions to another page in Excel. I have to run the routine twice because the first time the VBA does not
wait for the calculation to take place before it copies and pastes the result to another sheet. I tried putting an "Application.calculate" statement in there but it does not help.
I also tried writing a line of code like this to do the
calculations in VBA but the VBA editor is
marking it red and I can't figure out how to write it
correctly: "Value1 = WorksheetFunction.Large(E1:E60,2)"
I do have the Excel setting to update automatically.
Max
I have some VBA code that gets an array from the web and puts it into Excel. Then I have some functions on that page in Excel and I want VBA to copy the results of the functions to another page in Excel. I have to run the routine twice because the first time the VBA does not
wait for the calculation to take place before it copies and pastes the result to another sheet. I tried putting an "Application.calculate" statement in there but it does not help.
I also tried writing a line of code like this to do the
calculations in VBA but the VBA editor is
marking it red and I can't figure out how to write it
correctly: "Value1 = WorksheetFunction.Large(E1:E60,2)"
I do have the Excel setting to update automatically.
Max