.CellAlignment = flexAlignCenterCenter 好像不能用在循环里例如这样“”
With MSHFlexGrid1
.Cols = 2
.Rows = 2
.TextMatrix(0, 0) = "XH"
.TextMatrix(0, 1) = "SJ"
.TextMatrix(1, 0) = 1
.TextMatrix(1, 1) = 123 * 6
.CellAlignment = flexAlignCenterCenter '使第二列,第二行在单元格的中部居中
End With