There are two parts to this problem. First, get the file name. Second, use it in some constructive way.
I'm going to refer you to the File System Object (FSO) that is part of the Windows Scripting library. Where you want to use this, you have to make a reference to it. So from the VBA code window, Tools >> References and then scroll through the list of the unchecked libraries until you find Windows Scripting. Check that. (If it isn't checked already.)
Now you can create a windows FSO in code. This can help you to manipulate file information.
Office VBA reference topic
docs.microsoft.com
Once you have an object variable that is an FSO and you have that fully qualified file spec, you can extract parts from the spec. For example...
Office VBA reference topic
docs.microsoft.com
Once you have the path and name, you can concatenate them as you need. I would advise that you browse from the top-level page that explains the FSO and its many subroutines. This is an invaluable resource if you have to work on files.
You might have had better results using Right rather than Mid to do that filename extract, but the FSO.GetFileName method is more reliable.