Page.Import Method (Visio)
Imports a file into the current document.
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.
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.