G
Guest
Guest
Hi all,
I have this code to grab the first 3 chars from a line. Problem is.. whenever its running, the cursor quickly switches from the normal arrow to hourglass, giving it a flickering effect. Any ways to eliminate that?? Also, I have already set screenUpdating = False.
Sub GetSVCodeFromLine16()
Dim objLastCell As Object, cell As Object, strSVCode As String
Set objLastCell = RealLastCell(Application.ActiveSheet)
For Each cell In Range("S2", objLastCell)
strSVCode = Left(Trim(cell.Value), 3)
cell.Offset(rowOffset:=0, columnOffset:=1).FormulaR1C1 = UCase(strSVCode)
Next cell
End Sub
I have this code to grab the first 3 chars from a line. Problem is.. whenever its running, the cursor quickly switches from the normal arrow to hourglass, giving it a flickering effect. Any ways to eliminate that?? Also, I have already set screenUpdating = False.
Sub GetSVCodeFromLine16()
Dim objLastCell As Object, cell As Object, strSVCode As String
Set objLastCell = RealLastCell(Application.ActiveSheet)
For Each cell In Range("S2", objLastCell)
strSVCode = Left(Trim(cell.Value), 3)
cell.Offset(rowOffset:=0, columnOffset:=1).FormulaR1C1 = UCase(strSVCode)
Next cell
End Sub