Skip to content

Latest commit

 

History

History
57 lines (33 loc) · 1.45 KB

Visio.Master.Import.md

File metadata and controls

57 lines (33 loc) · 1.45 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Master.Import method (Visio)
vis_sdr.chm10716355
vis_sdr.chm10716355
Visio.Master.Import
3b13025f-1a83-0dcf-41e1-03cd83dfc7be
06/08/2017
medium

Master.Import method (Visio)

Imports a file into the current document.

Syntax

expression.Import (FileName)

expression A variable that represents a Master 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.

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

[!includeSupport and feedback]