I pasted the below code into "Sheet 1" and it worked just fine (slightly modified to factor in 2 columns and pasting the results in Columns H and I respectively:
Sub Dates()
Dim R As Range
Range("F11", Range("F" & Rows.Count).End(xlUp)).Select
For Each R In Selection
R.Offset(0, 2) = Left(R, 4) & "/" & Mid(R, 5, 2) & "/" & Right(R, 2)
Next R
Range("G11", Range("G" & Rows.Count).End(xlUp)).Select
For Each R In Selection
R.Offset(0, 2) = Left(R, 4) & "/" & Mid(R, 5, 2) & "/" & Right(R, 2)
Next R
End Sub
I also tried my pasting it into a Module and when i run the macro while being in Sheet 1 it again works fine.
Bookmarks