|
/某個范圍 Sheet.Range['A'+IntToStr(1), 'B'+IntToStr(1)].Select Excel.Selection.NumberFormatLocal = "@" //c列 Sheet.Cols['c'+':'+'c'].Select; Excel.Selection.NumberFormatLocal = "yyyy-m-d" //7行 Sheet.Rows[inttostr(7)+':'+inttostr(7)].Select; Excel.Selection.NumberFormatLocal = "yyyy-m-d" Excel.Selection.NumberFormatLocal = "@" 是設(shè)置文本格 Selection.NumberFormatLocal = "0.00%"百分比 Excel.Selection.NumberFormatLocal = "yyyy-m-d"日期 Excel.Selection.NumberFormatLocal = "h:mm;@"時間 Excel.Selection.NumberFormatLocal = "0.00_ "數(shù)值 |
|
|
來自: Alkaid2015 > 《75.VFP狐仙◆》