1

I would like a Visual Basic for Application Function which shows the path of the current document.

For example if ArcMap is displaying map.mxd I need to display its path.

I found only some examples for querying the path of the datasources of the displayed layers.

Andrea Francia
  • 9,737
  • 16
  • 56
  • 70

1 Answers1

2

Use this:

Dim DocAbsPath As String
DocAbsPath = Application.Templates.Item(Application.Templates.Count - 1)

Taken from this thread.

cfern
  • 5,956
  • 2
  • 25
  • 22