range("a" & Range("A" & Rows.Count).End(xlUp).Row + 1).select
firstblankrow=range("A1").end(xldown).row+1