Hi guys,
I've got a code that goes down a column with numbers, looks up a value on a website (through MSXML2.XMLHTTP method (thanks Kyle!)) and paste the result in a cell three columns next to the number.
It's about 200 ~ 300 numbers (variable) and since every lookup takes about half a second, people get impatient if they have to wait.
To "prevent" this, I do the following .
For Each cell In Range("C7:C" & Range("C65536").End(xlUp).Row)
If IsNumeric(cell.Value) = False Then GoTo nextart
cell.Offset(0, 3).Activate
cell.Offset(0, 3).Font.Bold = True
Application.ScreenUpdating = False
.... running webupdate code
Application.ScreenUpdating = True
cell.Offset(0, 3).Font.Bold = False
nextart:
Next cell
Now this works fine, it activates the cell and bolds the text to show the user which cell is being updated.
This however, only works for the first 10 rows it's doing. Then excel freezes and shows "NOT RESPONDING" in the top bar.
This stays on screen until the whole column with numbers is done and then excel recomposes itself, having the last result activated and the macro done.
How can I prevent excel from freezing at this point?
Any suggestion would be more than welcome :-)
Thanks so much!
Bookmarks