还有,行的颜色怎么定?谢

解决方案 »

  1.   


        With sheet.Rows(1).Font
            .Name = "宋体"
            .FontStyle = "常规"
            .Size = 12
            .Strikethrough = False
            .Superscript = False
            .Subscript = False
            .OutlineFont = False
            .Shadow = False
            .Underline = xlUnderlineStyleNone
            .ColorIndex = 3   '设置颜色!!!
        End With
      

  2.   

    with sheet.Cell(i,j)
         .NumberFormatLocal = "¥#,##0.00;¥-#,##0.00"
    end with好像设置成数字和货币类型的时候不可以整行设置或整列设置,总是提示错误,只好对单元格设置。