col=range("C1").end(xltoright).column '找到最后非空一列 cells(3,col)即为你所想要的单元格
[A2]=cells(i,columns.count).end(1)