Hi All,
Im am trying to use the find function to return the column letter in order to fetch the latest date in that column :
Still an amateur here so any guidance would be useful, thanks!
Im am trying to use the find function to return the column letter in order to fetch the latest date in that column :
VBA Code:
Sub find_latest_date()
Dim max_dat As Date, min_dat As Date
Dim last_lin As Long
Dim ws As Worksheet
Dim rfind As Range
Set ws = ThisWorkbook.Worksheets("Paste")
Set ws2 = ThisWorkbook.Worksheets("Control")
last_lin = ws.Cells(Rows.Count, 1).End(xlUp).Row
With Range("A1:FF1")
Set rfind = .Find(What:="ART start date", LookAt:=xlWhole, MatchCase:=False, SearchFormat:=False)
If Not rfind Is Nothing Then
Routing_column = Routing_column = Split(rfind.Address, "$")(1)
End If
End With
max_dat = Application.WorksheetFunction.Max(ws.Range("rfind" & "1" & "FF" & last_lin))
Call remove_nonblank_Last_ART_VL_Date
End Sub
Still an amateur here so any guidance would be useful, thanks!