Component.name2

Hello

I want to retrieve the name of a file, but when I use the Component.Name2 method, it returns the name of the file but to which it adds a serial number when it is a second-level file.

Is there a way not to have this index (instance) added?

Thank you.

A+

     Here are a few tips:

'Debug.Print "1 - Name: " & Composant.Name
'Debug.Print "1 - Path: " & Component.GetPathName
'Debug.Print "1 - Title: " & Component.GetTitle
'Debug.Print "1 - Config:" & Component.ReferencedConfiguration
'Debug.Print "1 - File Type:" & Component.GetType

Hello

Thanks for the info.

Alas, I think I'll be good at using "Component.GetPathName" and filter the result....

On the other hand ". GetTitle" and ". GetType" only works if the document is active (?).

A+