VB17-Excel导出设置格式

.Range(.Cells(1, 1), .Cells(1, Icol - 1)).Font.Name = “黑体”
'设标题为黑体字
.Range(.Cells(1, 1), .Cells(1, Icol - 1)).Font.Bold = True
'标题字体加粗
.Range(.Cells(1, 1), .Cells(Irow, Icol - 1)).Borders.LineStyle = xlContinuous
'设表格边框样式
.Range(.Cells(1, 1), .Cells(Irow, Icol - 1)).NumberFormatLocal = “yyyy/mm/dd”
'设日期格式

你可能感兴趣的:(VB6)