Excel Cell Alignments: Numerical values for e.g. xlLeft, xlRight or xlCenter?

后端 未结 3 478
广开言路
广开言路 2021-02-08 16:05

I\'ve been trying to align Excel cell text values. I\'ve tried the more common xlLeft, xlRight but this doesn\'t seem to work. The error was xlLe

3条回答
  •  清歌不尽
    2021-02-08 16:57

    xcl.Range("J:J").EntireColumn.HorizontalAlignment = _
    Microsoft.Office.Interop.Excel.Constants.xlCenter
    

提交回复
热议问题