Page.InsertFromFile method (Visio)
Adds a linked or embedded object to a page, master, or group.
Syntax
expression. InsertFromFile
( _FileName_
, _Flags_
)
expression A variable that represents a Page object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
FileName | Required | String | The name of the file that contains the object to link or embed. |
Flags | Required | Integer | Flags that influence how the object is inserted. |
Return value
Shape
Remarks
The InsertFromFile method creates a new shape that represents a linked or embedded OLE object.
The Flags argument is a bitmask that should be a combination of the following values.
Constant | Value | Description |
---|---|---|
visInsertLink | &H8 | If set, the new shape represents an OLE link to the named file. Otherwise, the InsertFromFile method produces an OLE object from the contents of the named file and embeds it in the document that contains the page, master, or group. |
visInsertIcon | &H10 | Displays the new shape as an icon. |
Caution
Use caution when you are adding ActiveX controls to your application. ActiveX controls may be designed in such a way that their use could pose a security risk. We recommend that you use controls from trusted sources only. Sign any controls that you author.
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 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기