目录
常用对象和方法
1.获取已经使用的单元格行数
Sheet8.Cells(Rows.Count,1).End(xlUp).Row
2.获取已经使用的单元格的列数
ActiveSheet.UsedRange.Columns.Count
Cells(1,1).CurrentRegion.Rows.Count
3.对单元格的内部进行涂色
Sheet11.Cells(1, color_count).Interior.Color = RGB(255, 255, 0)
4.对单元格的边框进行处理(加粗,红色)
Sheet2.Range("A1:A"& colr_rows).BorderAround ColorIndex:=3, Weight:=xlThick