3
I will address your code in sections and at the end I will provide a full updated code based on the touched subjects.
Application state
You are turning the Application 'off' with:
Application.ScreenUpdating = False
Application.Calculation = xlManual
Application.DisplayAlerts = False
at the beginning of your method and then you turn it back 'on' with:
...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
vba × 1205excel × 829
performance × 247
beginner × 78
object-oriented × 78
array × 48
ms-access × 43
error-handling × 33
web-scraping × 33
ms-word × 27
sql × 26
strings × 25
time-limit-exceeded × 23
vb6 × 23
algorithm × 22
rubberduck × 20
datetime × 19
sorting × 18
file-system × 17
unit-testing × 16
collections × 15
adodb × 15
dictionary × 13
design-patterns × 12
outlook × 11