Application.InchesToPoints method (Word)
Converts a measurement from inches to points (1 inch = 72 points). Returns the converted measurement as a Single.
Syntax
expression. InchesToPoints
( _Inches_
)
expression A variable that represents an Application object. Optional.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Inches | Required | Single | The inch value to be converted to points. |
Example
This example sets the space before for the selected paragraphs to 0.25 inch.
Selection.ParagraphFormat.SpaceBefore = InchesToPoints(0.25)
This example prints each open document after setting the left and right margins to 0.65 inch.
Dim docLoop As Document
For Each docLoop in Documents
With docLoop
.PageSetup.LeftMargin = InchesToPoints(0.65)
.PageSetup.RightMargin = InchesToPoints(0.65)
.PrintOut
End With
Next docLoop
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기