liguang

excel: Variant;
WBk, WS, RG: OleVariant;


try
Excel := GetActiveOleObject(\'Excel.Application\');
except
Excel := CreateOleObject(\'Excel.Application\');
end;
wbk:=Excel.ActiveWorkbook;
WS:=Excel.Worksheets[1]

RG:=WS.Range[WS.Cells[3,1],WS.Cells[9,9]];
RG.HorizontalAlignment := xlHAlignCenter;
RG.VerticalAlignment := xlHAlignCenter;
RG.WrapText := True;

分类:

技术点:

相关文章:

  • 2021-08-26
  • 2021-05-28
  • 2021-12-19
  • 2021-12-29
  • 2022-01-02
  • 2021-12-09
猜你喜欢
  • 2021-12-31
  • 2021-05-09
  • 2022-01-02
  • 2022-01-02
  • 2021-12-24
  • 2021-12-29
  • 2021-11-30
相关资源
相似解决方案