# NEARESTPOINTONPATH Function

Office 2010

Returns the percentage of the distance along the path of the point that is nearest to the specified coordinates, as a value between 0 and 1.

## Syntax

NEARESTPOINTONPATH(section,x,y)

### Parameters

Name

Required/Optional

Data Type

Description

section

Required

String

The Geometry section that represents the path, specified by a reference to its Path cell (for example, Geometry1.Path).

x

Required

Double

The x-coordinate of the specified point.

y

Required

Double

The y-coordinate of the specified point.

Double

## Remarks

If section does not exist, Microsoft Visio returns #REF!.

Show: