I'm downloading some data from a webpage and pasting it to a worksheet. I've gotten most of the bugs out of the process but I'm periodically getting this PasteSpecial Method issue popping up? By periodically I mean 1 out of 1000 page downloads.
How can I test to see if this "alarm" is going to come up? Is there a way to override the alarm and retry the paste? If X error occurs, wait 5 seconds and retry...
Here's the specific snippet of code.
How can I test to see if this "alarm" is going to come up? Is there a way to override the alarm and retry the paste? If X error occurs, wait 5 seconds and retry...
Here's the specific snippet of code.
Code:
Application.DisplayAlerts = False
ActiveSheet.PasteSpecial Foremat:="Text", link:=False, DisplayAsIcon:=False
Application.DisplayAlerts = True