VBA GetAbsolutePathName

The FileSystemObject VBA GetAbsolutePathName function returns a complete and unambiguous path to a file or folder based on the provided file or folder path.

This function is useful for reuse for other functions where unambiguous file or folder paths need to be use.

VBA GetAbsolutePathName Syntax

fso.GetAbsolutePathName( path )

A path that you want to convert to unambiguous file and folder.

VBA GetAbsolutePathName Examples

Set fso = CreateObject("Scripting.FileSystemObject")

fso.GetAbsolutePathName( "Src" ) 'Result: "C:\Src"

fso.GetAbsolutePathName( "C:\..\Somefolder*\" ) 'Result: "C:\Src\Somefolder\"