mahmed1
Well-known Member
- Joined
- Mar 28, 2009
- Messages
- 2,302
- Office Version
- 365
- 2016
- Platform
- Windows
Hi
Hope you are well - is there any chance someone can help me convert this code from loop to an array as its taking so long to update
I have a sheet with multiple formulas therefore when looping through and pasting into sheet its taking ages so i just need to speed this code up by putting into an array and then pasting 1 time into the sheet
Hoping someone can help me please
Thank you
Hope you are well - is there any chance someone can help me convert this code from loop to an array as its taking so long to update
I have a sheet with multiple formulas therefore when looping through and pasting into sheet its taking ages so i just need to speed this code up by putting into an array and then pasting 1 time into the sheet
Hoping someone can help me please
Thank you
VBA Code:
For i = 5 To Lrow
If Queue_Split_Sh.Cells(i, 13).Value = 1 Then
First_1 = Queue_Split_Sh.Cells(i, 11).Value + 13
Last_1 = Queue_Split_Sh.Cells(i, 12).Value + 13
A = 1
For c = First_1 To Last_1
Queue_Split_Sh.Cells(i, c).Value = A
A = A + 1
Next c
End If
Next i
Application.ScreenUpdating = True
MsgBox "Updated", vbOKOnly, "Updated"