Page.Import method (Visio)
Imports a file into the current document.
Syntax
expression.Import (FileName)
expression A variable that represents a Page object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
FileName | Required | String | The name of the file to import; must be a fully qualified path. |
Return value
Shape
Remarks
The Import method imports the file specified by FileName onto a page, or into a master or group.
If the path to FileName does not resolve, the Import method returns an error.
The file name extension indicates which import filter to use. If the filter is not installed, the Import method returns an error. The Import method uses the default preference settings for the specified filter and does not prompt the user for non-default arguments.
Example
This Microsoft Visual Basic for Applications (VBA) macro shows how to use the Import method to import a bitmap image onto the drawing page. This example assumes that there is a file with the name sampleImage.bmp on drive C of your computer.
Public Sub Import_Example()
ActivePage.Import ("C:\sampleImage.bmp")
End Sub
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 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기