Dim fso As New Scripting.FileSystemObject Debug.Print fso.GetExtensionName("MyFile.something.txt")
Prints txt Note that the GetExtensionName() method already handles multiple periods in a file name.
txt
GetExtensionName()