如何让excel表格中数据显示居中或靠右?

如题所述

第1个回答  2011-10-11
选中单元格-右键-设置单元格格式-对齐-水平对齐-靠右或居中
第2个回答  2011-10-11
如果在Excel中直接操作,应该很简单,这里不说:
如果VBA处理:
可以用代码:
Range("A1:A8").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
End With
'中间
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlCenter
End With
'左
With Selection
.HorizontalAlignment = xlRight
.VerticalAlignment = xlCenter
End With
'右
第3个回答  2011-10-11
单元格格式——对齐——选择居中或本回答被提问者采纳
第4个回答  2011-10-11
右键选择:设置单元格格式/对齐,查看水平方式。
对齐方式工具栏中也有快捷按钮。
第5个回答  2011-10-11
2007版下
在 开始--格式---单元格格式--对齐选项卡下可选数据显示对齐方式
其他版本类似
相似回答