Application.EditPasteSpecial method (Project)

Copies or links data from the Clipboard into the active selection.

Syntax

expression. EditPasteSpecial( _Link_, _Type_, _DisplayAsIcon_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Link Optional Boolean True if the data is linked to its source application.
Type Optional Integer A numeric value specifying the type of object to paste or link. The Type argument can be one of the PjPasteSpecialType constants.
DisplayAsIcon Optional Boolean True if the object appears as an icon.

Return value

Boolean

Example

The following example pastes the Clipboard content as a picture.

Sub Edit_PasteSpecial() 
 
 'Activate Gantt Chart view 
 ViewApply Name:="&Gantt Chart" 
 
 SelectRow Row:=2, RowRelative:=False 
 EditPasteSpecial Link:=False, Type:=pjPicture, DisplayAsIcon:=False 
 
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.