This code works fine:
ActiveCell.Formula = "=""From :"" & TEXT(MIN(D16:D104),""mm/dd/yyyy"")"I want to replace D104 with a variable(nrows)
ActiveCell.Formula = "=""From : & TEXT(MIN(D16:"" & (nrows)) & "",""mm/dd/yyyy"")"nrows is defined as a string. I'm sure it's a syntax error but I can't figure it out.thanks in advance for the help.