The DataFileName property returns the data path and file name. Returns a string. This is a read-only property.
Syntax
object.DataFileName
Example
This example returns the data path and file name associated with the current map layer.
Debug.Print CurrentLayer.DataFileName
Used by: Layer object