使用 VBA 的图像尺寸单位

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19562477/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-12 00:02:08  来源:igfitidea点击:

Unit of dimensions of image using VBA

excel-vbapowerpointvbaexcel

提问by user2862496

The code written below is used to set the position and size of in image in powerpoint using vba-excel macro:

下面编写的代码用于使用vba-excel宏在powerpoint中设置图像的位置和大小:

With ActiveWindow.Selection.ShapeRange
    .Height = 400
    .Width = 400
    .Left = 50
    .Top = 50
End With

What are the units in which these dimensions are given? how many inches does 400 point equals?

给出这些尺寸的单位是什么?400点等于多少英寸?

回答by Bathsheba

The units are points. There are exactly 72 points in an inch.

单位是。一英寸正好有 72 个点。

(So 400 points equates to 559inches)

(所以 400 点等于 5 59英寸)