【发布时间】:2015-03-03 14:20:22
【问题描述】:
我正在用代码创建一个按钮
Set CreateButton = ActiveSheet.Buttons.Add _
(C.Left, C.Top, C.Width, C.Height)
其中 C 是 Cell 对象。按钮不出现在单元格中,而是出现在小上方。
CreateButton.Top 是 107.25。当我尝试将 CreateButton.Top 分配给自身时,值为 114.75。怎么回事?
【问题讨论】:
-
你能提供更多细节吗?我无法使用您提供的代码重现您的问题。
-
我有页面布局查看模式
-
是的。在普通视图模式下工作正常
-
我正在使用 Excel 2013,并且我能够重现此