hi! how can i set this formula (today+91) as a general, in yyyymmdd format? So that I can then copy and paste it over to AF:?
VBA Code:
'Maturity formula
Range("AM" & lastrowadj & ":AM" & lastrowfinal).Formula = "=today()+91"
Range("AM" & lastrowadj & ":AM" & lastrowfinal).Copy
Range("AF" & lastrowadj & ":AF" & lastrowfinal).PasteSpecial xlPasteValues
Range("AM7:AM" & lastrowfinal).Clear
Application.CutCopyMode = False
'sort by symbol
Range("AD7:AL" & lastrowfinal).Sort key1:=Range("AG7:AG" & lastrow), _
order1:=xlAscending, Header:=xlNo