a= sheets("sheet1").usedrange.rows.countFor i = a To 1 Step -1 If Sheets("sheet1").Cells(i, 1) = "" ThenSheets("sheet1").cells(i,1).select Selection.Delete Shift:=xlUp ' 删除空格,下方单元格上移End IfNext i此VBA只适用于A列,我的表格为A列至CXX列,请教EXCEL 高手上述VBA怎么改,所有的列都能删除空格?