Hi all, i have the below piece of code that i run every 200 milliseconds. It works fine however i am looking for a better, more efficient way of producing the same result. I use AutoHotKey to get information from Excel and quite often i will get a Callee error, i assume this is because Excel is in Edit mode whilst the routine is in operation?
Any ideas please.
Many thanks
Any ideas please.
Many thanks
Code:
Sub PriceRefresh()
Worksheets("Data").Range("AJ5:AJ11").Value = Worksheets("Data").Range("AI5:AI11").Value
Worksheets("Data").Range("AI5:AI11").Value = Worksheets("Data").Range("AH5:AH11").Value
Worksheets("Data").Range("AH5:AH11").Value = Worksheets("Data").Range("AG5:AG11").Value
Worksheets("Data").Range("AG5:AG11").Value = Worksheets("Data").Range("AF5:AF11").Value
Worksheets("Data").Range("AF5:AF11").Value = Worksheets("Data").Range("AE5:AE11").Value
Worksheets("Data").Range("AE5:AE11").Value = Worksheets("Data").Range("AD5:AD11").Value
Worksheets("Data").Range("AD5:AD11").Value = Worksheets("Data").Range("AC5:AC11").Value
Worksheets("Data").Range("AC5:AC11").Value = Worksheets("Data").Range("AB5:AB11").Value
Worksheets("Data").Range("AB5:AB11").Value = Worksheets("Data").Range("AA5:AA11").Value
Worksheets("Data").Range("AA5:AB11").Value = Worksheets("Data").Range("F5:F11").Value
Worksheets("Data").Range("AU5:AU11").Value = Worksheets("Data").Range("AT5:AT11").Value
Worksheets("Data").Range("AT5:AT11").Value = Worksheets("Data").Range("AS5:AS11").Value
Worksheets("Data").Range("AS5:AS11").Value = Worksheets("Data").Range("AR5:AR11").Value
Worksheets("Data").Range("AR5:AR11").Value = Worksheets("Data").Range("AQ5:AQ11").Value
Worksheets("Data").Range("AQ5:AQ11").Value = Worksheets("Data").Range("AP5:AP11").Value
Worksheets("Data").Range("AP5:AP11").Value = Worksheets("Data").Range("AO5:AO11").Value
Worksheets("Data").Range("AO5:AO11").Value = Worksheets("Data").Range("AN5:AN11").Value
Worksheets("Data").Range("AN5:AN11").Value = Worksheets("Data").Range("AM5:AM11").Value
Worksheets("Data").Range("AM5:AM11").Value = Worksheets("Data").Range("AL5:AL11").Value
Worksheets("Data").Range("AL5:AL11").Value = Worksheets("Data").Range("H5:H11").Value
End Sub
Last edited: