iif(字段名<>0,字段名,space(1))
表格线
ExcelApp.RANGE( "A1:B2").SELECT
&&选择区
ExcelApp.SELECTION.BORDERS( -4160 ).LINESTYLE = 1
ExcelApp.SELECTION.BORDERS( -4107 ).LINESTYLE = 1
ExcelApp.SELECTION.BORDERS( -4131 ).LINESTYLE = 1
ExcelApp.SELECTION.BORDERS( -4152 ).LINESTYLE = 1