Hey guys,
I want to convert my Data I have in column C and D from String to Date so I can do my AutoFilter. However I thought the easiest way is to do this with CDate, but every time I get this error: Run-time error '1004': Method 'Range' of Oobject 'Global_Failed' So I assume the problem is that I want to do it with two columns. Has anybody a suggestion how I could fix this problem?
Please find below the macro I'm trying it with and I also attach the workbook.
Thanks a lot
Sub ffff() Dim PayOutDate As Date Dim PayOutDate0 As String Dim Rng1 As Range Set Rng1 = ActiveSheet.Range("C9:D9").End(xlDown) PayOutDate0 = Range(Rng1).Value PayOutDate = CDate(PayOutDate0) End Sub