Tag: VBA code to separate a file name from full path

VBA Code To Separate Filename From The Path

Dim fullPath() As String Dim wbIndex As Long Dim wbName as String Dim wbAddr as String ‘ Wbaddr holds the full path for example: ” D:\Documents and Settings\Desktop\Preeti\macro\Input.xls” fullPath() = Split(wbAddr, “\”) ‘PutĀ  Parts of the path into the array…