Guzzlr
Well-known Member
- Joined
- Apr 20, 2009
- Messages
- 982
- Office Version
- 2021
- Platform
- Windows
Hello
I have column F with the typical Date and Time, which begins in cell (F6).
I need to take away the time stamp in Column F all the way to the bottom of F where there is data, so just the date is showing.
I found the below code on google, and I am trying to modify it so it begins in F6 and strips the time stamp from the date to the bottom of the last cell with data in column F.
Can I get some help on why this is not working.
Thank you for the help
I have column F with the typical Date and Time, which begins in cell (F6).
I need to take away the time stamp in Column F all the way to the bottom of F where there is data, so just the date is showing.
I found the below code on google, and I am trying to modify it so it begins in F6 and strips the time stamp from the date to the bottom of the last cell with data in column F.
VBA Code:
Sheets("Report Paste").Select
With Selection
i = Abs(Not IsDate(.Cells(6, 6).Value))
With .Range(.Cells(1 + i, "F"), .Cells(.Rows.Count, "F").End(xlUp))
.TextToColumns Destination:=.Cells(1, "F"), DataType:=xlFixedWidth, _
FieldInfo:=Array(Array(0, xlDMYFormat), Array(10, xlSkipColumn))
End With
End With
Can I get some help on why this is not working.
Thank you for the help