I am running code on thousands of lines of data with a loop. The code runs smoothly for a long time then will debug on the public function below. It goes through this paste function many times and just quits working randomly.
I am coping data from a Reflections session then finding the cell in the excel sheet where i want the data posted. This is the only location where it stops. When i select continue on the macro, it will run again with no issue for another thousands times but then it stops again.
I have tried numerous paste options and this is the only one that works properly, but it just doesn't work sometimes.
Any suggestions:
(Pause is another public function that tells the Reflection session to wait.)
I am coping data from a Reflections session then finding the cell in the excel sheet where i want the data posted. This is the only location where it stops. When i select continue on the macro, it will run again with no issue for another thousands times but then it stops again.
I have tried numerous paste options and this is the only one that works properly, but it just doesn't work sometimes.
Any suggestions:
Code:
Public Function PSV()
Pause
ActiveSheet.Paste
End Function
(Pause is another public function that tells the Reflection session to wait.)