ExcelVBA-Range对象.docxVIP

  • 9
  • 0
  • 约2.1千字
  • 约 2页
  • 2017-05-31 发布于北京
  • 举报
Rows.Count ?? 显示所有行的数目 Columns.Count??? 显示所有列的数目 Cells(Rows.Count, 1).End(xlUp).Row??? 显示第一列从下面数第一个有值的单元格的行号 Cells(1, Columns.Count).End(xlToLeft).Column??? 显示第一行从右面数第一个有值的单元格的列号 Cells(1, 1).BorderAround xlContinuous, xlThin??? 给A1单元格加入外边框Range(A1:B4).Borders.LineStyle. = xlContinuous??? 给这个区域加入边框 Rows(1).AutoFit??? 为第一行分配合适的行距 Columns(1).AutoFit??? 为第一列分配合适的列宽 Rows(1).Delete??? 删除第一行 Columns(1).Delete??? 删除第一列 Cells(1, 1).MergeArea.Count??? 计算合并单元格的总单元格数 Cells(1, 1).MergeArea.Rows.Count??? 计算合并单元格的行数 Cells(1, 1).MergeArea.Columns.Count??? 计算合并单元格的列数 Cells(1, 1).MergeCells??? 返回Boolean,True和

文档评论(0)

1亿VIP精品文档

相关文档