Previous Document Next Document

Object Model Reference : Classes : U : URL : Properties : URL.TargetFrame


URL.TargetFrame

Property TargetFrame As String

Description

Member of URL

The TargetFrame property returns or specifies the name of the target frame for a URL.

VBA example

The following VBA example displays the names of all targeted frames for the shapes on the page.

Sub Test()
 Dim sh As Shape, s As String
 For Each sh In ActivePage.Shapes
  If sh.URL.TargetFrame <> "" Then
   s = s & sh.URL.TargetFrame & vbCr
  End If
 Next sh
 MsgBox "The current page contains the following URL target frames: " & vbCr & s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.