Hello
I have a progress bar called Progressbar1. I would like to show the status of a loop as it takes a couple of minutes to run and I unsure how to do this. Can some one please help?
This is my code so far, thank you Richard Baker
Code:
Application.ScreenUpdating = False Sheets("Summary").SelectDim CurRow As IntegerCurRow = 1 For Each x In Range("A" & CurRow, Range("A" & CurRow).End(xlDown)) If x = "" Then Exit For 'Proof Number Column B x.Offset(0, 1).Formula = "=VLOOKUP(A" & CurRow & ", AX!A:I, 7, 0)" CurRow = CurRow + 1Next Application.ScreenUpdating = true</PRE>
I have a progress bar called Progressbar1. I would like to show the status of a loop as it takes a couple of minutes to run and I unsure how to do this. Can some one please help?
This is my code so far, thank you Richard Baker
Code:
Application.ScreenUpdating = False Sheets("Summary").SelectDim CurRow As IntegerCurRow = 1 For Each x In Range("A" & CurRow, Range("A" & CurRow).End(xlDown)) If x = "" Then Exit For 'Proof Number Column B x.Offset(0, 1).Formula = "=VLOOKUP(A" & CurRow & ", AX!A:I, 7, 0)" CurRow = CurRow + 1Next Application.ScreenUpdating = true</PRE>