kermitfrog123
Board Regular
- Joined
- Dec 19, 2015
- Messages
- 50
Hi All,
I have the below VBA code which does what I need but it is very slow. Can someone tell me if there is a way this can be done in one step rather than looping through all 2500 cells.
I have the below VBA code which does what I need but it is very slow. Can someone tell me if there is a way this can be done in one step rather than looping through all 2500 cells.
Code:
Application.ScreenUpdating = False
Dim Current_Date As Date
Dim Date_String As String
Dim rCell As Range
Dim rRng As Range
Set rRng = Range("F3:F2500")
For Each rCell In rRng.Cells
rCell.Select
Date_String = rCell.Value
Current_Date = CDate(Date_String)
rCell.Select
rCell.Value = Current_Date
Next rCell
Application.ScreenUpdating = True