In my procedure i use this code ....
Sub DisableCancel()
Application.EnableCancelKey = xlDisabled
For i = 1 To 60000
Cells(i, 1) = i
Next
Application.EnableCancelKey = False
End Sub
just replace
For i = 1 To 60000
Cells(i, 1) = i
Next
by your code
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.